Emoji ID in stream
ci/woodpecker/push/ociImageTag Pipeline was successful Details

This commit is contained in:
Natty 2023-11-05 18:42:11 +01:00
parent e8b6c132fd
commit 9cca1056ec
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
2 changed files with 16 additions and 21 deletions

View File

@ -125,6 +125,7 @@ export interface NoteStreamTypes {
reacted: {
reaction: string;
emoji?: {
id: string;
name: string;
url: string;
} | null;

View File

@ -2,17 +2,10 @@ import { publishNoteStream } from "@/services/stream.js";
import {renderLike} from "@/remote/activitypub/renderer/like.js";
import DeliverManager from "@/remote/activitypub/deliver-manager.js";
import {renderActivity} from "@/remote/activitypub/renderer/index.js";
import { toDbReaction, decodeReaction } from "@/misc/reaction-lib.js";
import type { User, IRemoteUser } from "@/models/entities/user.js";
import {decodeReaction, toDbReaction} from "@/misc/reaction-lib.js";
import type {IRemoteUser, User} from "@/models/entities/user.js";
import type {Note} from "@/models/entities/note.js";
import {
NoteReactions,
Users,
NoteWatchings,
Notes,
Emojis,
Blockings,
} from "@/models/index.js";
import {Blockings, Emojis, NoteReactions, Notes, NoteWatchings, Users,} from "@/models/index.js";
import {IsNull, Not} from "typeorm";
import {perUserReactionsChart} from "@/services/chart/index.js";
import {genId} from "@/misc/gen-id.js";
@ -109,6 +102,7 @@ export default async (
emoji:
emoji != null
? {
id: emoji.id,
name: emoji.host
? `${emoji.name}@${emoji.host}`
: `${emoji.name}@.`,