Skip to content

Commit

Permalink
feat: websocketを対応
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Jan 25, 2025
1 parent 8d51b03 commit eed16bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/backend/src/core/AntennaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ export class AntennaService implements OnApplicationShutdown {
if (note.visibility === 'specified') return false;
if (note.visibility === 'followers') return false;

if (antenna.hideNotesInSensitiveChannel && note.channel?.isSensitive) return false;

if (antenna.excludeBots && noteUser.isBot) return false;

if (antenna.localOnly && noteUser.host != null) return false;
Expand Down
1 change: 1 addition & 0 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ export class NoteCreateService implements OnApplicationShutdown {
replyId: data.reply ? data.reply.id : null,
renoteId: data.renote ? data.renote.id : null,
channelId: data.channel ? data.channel.id : null,
channel: data.channel,
threadId: data.reply
? data.reply.threadId
? data.reply.threadId
Expand Down

0 comments on commit eed16bc

Please sign in to comment.