Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtered notifications that show in admin-x-activitypub #21903

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mike182uk
Copy link
Member

refs AP-627

Adding client side filtering of the notifications in admin-x-activitypub - This is a stop-gap until we have a dedicated endpoint for returning notifications. Filtering includes:

  • Do not show our own likes
  • Only show like notifications when it is on our own posts
  • Only show replies to our own posts

const {getActivitiesQuery} = useActivitiesForUser({
handle: user,
includeOwn: true,
includeReplies: true,
filter: {
type: ['Follow', 'Like', `Create:Note:isReplyToOwn`]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isReplyToOwn doesn't appear to be working correctly, and will be removed when we switch to a dedicated notifications endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant