mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 15:16:44 -06:00
fix(wip): add updated tags & emojis to push notification
This commit is contained in:
parent
c7359a02f5
commit
41be76fc53
3 changed files with 6 additions and 0 deletions
|
@ -121,6 +121,8 @@ export interface NoteEventTypes {
|
|||
cw: string | null;
|
||||
text: string;
|
||||
updatedAt: string;
|
||||
tags: string[];
|
||||
emojis: string[];
|
||||
};
|
||||
reacted: {
|
||||
reaction: string;
|
||||
|
|
|
@ -128,6 +128,8 @@ export class NoteUpdateService {
|
|||
cw: ps.cw,
|
||||
text: ps.text ?? '', // prevent null
|
||||
updatedAt: ps.updatedAt.toISOString(),
|
||||
tags,
|
||||
emojis,
|
||||
});
|
||||
|
||||
if (this.userEntityService.isLocalUser(user) && !note.localOnly) {
|
||||
|
|
|
@ -87,6 +87,8 @@ export function useNoteCapture(props: {
|
|||
note.value.updatedAt = body.updatedAt;
|
||||
note.value.cw = body.cw;
|
||||
note.value.text = body.text;
|
||||
note.value.tags = body.tags;
|
||||
note.value.emojis = body.emojis;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue