Skip to content

Feature/190 no notification for quotes#82

Merged
chrisjensen merged 4 commits into
mainfrom
feature/190-no-notification-for-quotes
Mar 13, 2026
Merged

Feature/190 no notification for quotes#82
chrisjensen merged 4 commits into
mainfrom
feature/190-no-notification-for-quotes

Conversation

@chrisjensen

@chrisjensen chrisjensen commented Mar 8, 2026

Copy link
Copy Markdown
Member

Delay notifications for replies unless they have 2 likes or are from someone the user trusts or follows

Closes speakeasy-social/speakeasy#190

Chris Jensen added 4 commits March 7, 2026 14:14
Add two new filter modes to the getPosts API to prevent unfiltered
feeds from being polluted by bad actors:

- filter=discover: only returns posts with 2+ likes
- filter=likedByTrusted: only returns posts liked by a user the
  viewer trusts (cross-service call to trusted-users, cached 5min)

Closes #172
…ations

Adds schema support for deferred reply notifications.
- pending: marks notifications hidden until activated by 2+ likes
- notifiedAt: tracks when a notification became visible, used for
  ordering and updateSeen instead of createdAt
…atus

Reply notifications are now created as pending when the reply author is
not trusted or followed by the recipient. Pending notifications are
activated when the reply post receives 2+ likes.

- Add checkIfFollowedBy utility for worker-compatible Bluesky follow checks
- notifyReply checks trust (inter-service) then follows (Bluesky API)
- notifyReaction activates pending reply notifications at 2+ likes
- Notification service filters pending by default, uses notifiedAt for
  ordering and seen tracking
- Expose notifiedAt in notification API response

Closes #190
…ering

- notifyReply: test pending/non-pending based on trust and follow status
- notifyReaction: test activation of pending notifications at 2+ likes
- notifications API: fix updateSeen test to use notifiedAt
@chrisjensen chrisjensen merged commit 185cf48 into main Mar 13, 2026
1 check passed
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.

Solve feed polution for replies and reposts

1 participant