Comments on plays
- Anyone who can see a play can read its comments; the player and the people they follow can write. The author, the player and admins can delete; comments can be reported (admins see the text). - Notifications: "commented on" for the player, "replied on" for earlier commenters, each with its own setting. Reaction and comment notifications now open the play. - A 💬 chip with the count next to reactions on the feed and recent plays, opening the thread on the app (/play/[id]) and the website. Threads refresh every few seconds while open. - Blocking removes comments between the two people. Plays with comments survive history trimming. - Privacy page updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Y2iUsKEWDuRGjK5FPmcUP
This commit is contained in:
@@ -11,6 +11,7 @@ import { HttpError } from '../lib/http';
|
||||
import { FOLLOWS_CHANGED_CHANNEL, redis } from '../lib/redis';
|
||||
import { removeNotificationsBetween } from '../services/notifications';
|
||||
import { toUserSummary } from '../services/nowPlaying';
|
||||
import { removeCommentsBetween } from './comments';
|
||||
import { removeReactionsBetween } from './reactions';
|
||||
|
||||
async function findUser(username: string) {
|
||||
@@ -49,6 +50,7 @@ export async function safetyRoutes(app: FastifyInstance) {
|
||||
);
|
||||
});
|
||||
await removeReactionsBetween(me.id, them.id);
|
||||
await removeCommentsBetween(me.id, them.id);
|
||||
await removeNotificationsBetween(me.id, them.id);
|
||||
await followsChanged(me.id, them.id);
|
||||
return { ok: true };
|
||||
|
||||
Reference in New Issue
Block a user