mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2025-01-25 08:44:33 +01:00
improvement
This commit is contained in:
parent
64abef8be9
commit
8f96b50b00
1 changed files with 1 additions and 2 deletions
|
@ -104,8 +104,7 @@ export default abstract class Channel {
|
||||||
public onMessage?(type: string, body: JsonValue): void;
|
public onMessage?(type: string, body: JsonValue): void;
|
||||||
|
|
||||||
public async assignMyReaction(note: Packed<'Note'>, noteEntityService: NoteEntityService) {
|
public async assignMyReaction(note: Packed<'Note'>, noteEntityService: NoteEntityService) {
|
||||||
if (this.user === undefined) { return; }
|
if (this.user && Object.keys(note.reactions).length > 0) {
|
||||||
if (Object.keys(note.reactions).length > 0) {
|
|
||||||
const myReaction = await noteEntityService.populateMyReaction(note, this.user.id);
|
const myReaction = await noteEntityService.populateMyReaction(note, this.user.id);
|
||||||
note.myReaction = myReaction;
|
note.myReaction = myReaction;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue