mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-28 08:26: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;
|
cw: string | null;
|
||||||
text: string;
|
text: string;
|
||||||
updatedAt: string;
|
updatedAt: string;
|
||||||
|
tags: string[];
|
||||||
|
emojis: string[];
|
||||||
};
|
};
|
||||||
reacted: {
|
reacted: {
|
||||||
reaction: string;
|
reaction: string;
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue