summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authorHazel K <acomputerdog@gmail.com>2024-09-30 13:29:15 -0400
committerHazel K <acomputerdog@gmail.com>2024-09-30 13:29:15 -0400
commitacc0c7867fcc44650f9ada06286f35a103ceec1e (patch)
tree78ad4b1d0e4085c7c0e319383c30dd1f7f1be5a9 /packages/backend/src/core/NoteCreateService.ts
parentfix more copyright headers (diff)
downloadsharkey-acc0c7867fcc44650f9ada06286f35a103ceec1e.tar.gz
sharkey-acc0c7867fcc44650f9ada06286f35a103ceec1e.tar.bz2
sharkey-acc0c7867fcc44650f9ada06286f35a103ceec1e.zip
exclude boosts from featured timeline
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 17631eea89..0af65b81b1 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -63,6 +63,7 @@ import { isReply } from '@/misc/is-reply.js';
import { trackPromise } from '@/misc/promise-tracker.js';
import { isUserRelated } from '@/misc/is-user-related.js';
import { IdentifiableError } from '@/misc/identifiable-error.js';
+import { isQuote, isRenote } from '@/misc/is-renote.js';
type NotificationType = 'reply' | 'renote' | 'quote' | 'mention';
@@ -1136,6 +1137,9 @@ export class NoteCreateService implements OnApplicationShutdown {
// Ignore DMs
if (note.visibility === 'specified') return;
+ // Ignore pure renotes
+ if (isRenote(note) && !isQuote(note)) return;
+
// Make sure that this isn't an *older* post.
// We can get older posts through replies, lookups, etc.
const currentLatest = await this.latestNotesRepository.findOneBy({ userId: note.userId });