fix(wip): add updated tags & emojis to push notification

This commit is contained in:
Nya Candy 2024-07-30 22:12:36 +08:00 committed by fly_mc
parent c7359a02f5
commit 41be76fc53
3 changed files with 6 additions and 0 deletions

View file

@ -121,6 +121,8 @@ export interface NoteEventTypes {
cw: string | null; cw: string | null;
text: string; text: string;
updatedAt: string; updatedAt: string;
tags: string[];
emojis: string[];
}; };
reacted: { reacted: {
reaction: string; reaction: string;

View file

@ -128,6 +128,8 @@ export class NoteUpdateService {
cw: ps.cw, cw: ps.cw,
text: ps.text ?? '', // prevent null text: ps.text ?? '', // prevent null
updatedAt: ps.updatedAt.toISOString(), updatedAt: ps.updatedAt.toISOString(),
tags,
emojis,
}); });
if (this.userEntityService.isLocalUser(user) && !note.localOnly) { if (this.userEntityService.isLocalUser(user) && !note.localOnly) {

View file

@ -87,6 +87,8 @@ export function useNoteCapture(props: {
note.value.updatedAt = body.updatedAt; note.value.updatedAt = body.updatedAt;
note.value.cw = body.cw; note.value.cw = body.cw;
note.value.text = body.text; note.value.text = body.text;
note.value.tags = body.tags;
note.value.emojis = body.emojis;
break; break;
} }