Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request introduces a new filtering functionality to the
userprofile
page. The main objective of this update is to enhance the user experience by providing a more refined control over the visibility of posts.Key Changes:
Filter Implementation for
topData
andlistData
: ThetopData
andlistData
on theuserprofile
page have been updated with a filtering mechanism. This feature filters out 'unlisted' posts, ensuring that they are only visible to specific user roles.Role-Based Visibility: The visibility of 'unlisted' posts is now restricted. These posts are only displayed to the Post author, Admin, and Moderator roles.
Testing:
The new filter functionality has been thoroughly tested to ensure it operates as intended across various scenarios. Tests included checking the visibility of posts for different user roles and verifying the correct functioning of the
topData
andlistData
filters.Looking forward to your feedback and suggestions on this implementation.
Thank you for considering this Pull Request.
Related issue: #661