summaryrefslogtreecommitdiff
path: root/packages/backend/src
diff options
context:
space:
mode:
authorMarie <marie@kaifa.ch>2023-10-01 01:55:40 +0200
committerGitHub <noreply@github.com>2023-10-01 01:55:40 +0200
commite5d9eb3082b89725ac0d1ef2b98b192d6cb5e50b (patch)
tree6e6600d07382a285bfb89346597cd0b9f1dacb88 /packages/backend/src
parentMerge pull request #31 from transfem-org/icons (diff)
parentMerge branch 'icons' of https://github.com/transfem-org/Sharkey into icons (diff)
downloadsharkey-e5d9eb3082b89725ac0d1ef2b98b192d6cb5e50b.tar.gz
sharkey-e5d9eb3082b89725ac0d1ef2b98b192d6cb5e50b.tar.bz2
sharkey-e5d9eb3082b89725ac0d1ef2b98b192d6cb5e50b.zip
merge: add like button #32
Add Like Button
Diffstat (limited to 'packages/backend/src')
-rw-r--r--packages/backend/src/core/entities/NoteEntityService.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts
index bcd99548fe..b3e140e588 100644
--- a/packages/backend/src/core/entities/NoteEntityService.ts
+++ b/packages/backend/src/core/entities/NoteEntityService.ts
@@ -343,6 +343,9 @@ export class NoteEntityService implements OnModuleInit {
uri: note.uri ?? undefined,
url: note.url ?? undefined,
updatedAt: note.updatedAt != null ? note.updatedAt.toISOString() : undefined,
+ ...(meId ? {
+ myReaction: this.populateMyReaction(note, meId, options?._hint_),
+ } : {}),
...(opts.detail ? {
clippedCount: note.clippedCount,
@@ -358,10 +361,6 @@ export class NoteEntityService implements OnModuleInit {
}) : undefined,
poll: note.hasPoll ? this.populatePoll(note, meId) : undefined,
-
- ...(meId ? {
- myReaction: this.populateMyReaction(note, meId, options?._hint_),
- } : {}),
} : {}),
});