From 2a5edd3ca16fa7fef4e813bdefe4eaa224fd74d4 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 6 Jul 2023 00:54:02 +0200 Subject: [PATCH] [mastodon-client] Disable emoji reactions preview in TL --- packages/backend/src/server/api/mastodon/endpoints/timeline.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/backend/src/server/api/mastodon/endpoints/timeline.ts b/packages/backend/src/server/api/mastodon/endpoints/timeline.ts index b8ef0929ee..1eebac2db2 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/timeline.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/timeline.ts @@ -45,6 +45,8 @@ export function toTextWithReaction(status: Entity.Status[], host: string) { return status.map((t) => { if (!t) return statusModel(null, null, [], "no content"); t.quote = null as any; + // disabled for now + /* if (!t.emoji_reactions) return t; if (t.reblog) t.reblog = toTextWithReaction([t.reblog], host)[0]; const reactions = t.emoji_reactions.map((r) => { @@ -71,6 +73,7 @@ export function toTextWithReaction(status: Entity.Status[], host: string) { t.content = `

${autoLinker(t.content, host)}

${reactions.join( ", ", )}

`; + */ return t; }); }