[mastodon-client] Disable emoji reactions preview in TL

This commit is contained in:
Laura Hausmann 2023-07-06 00:54:02 +02:00 committed by Laura Hausmann
parent ab18c22fa9
commit 2a5edd3ca1
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,8 @@ export function toTextWithReaction(status: Entity.Status[], host: string) {
return status.map((t) => { return status.map((t) => {
if (!t) return statusModel(null, null, [], "no content"); if (!t) return statusModel(null, null, [], "no content");
t.quote = null as any; t.quote = null as any;
// disabled for now
/*
if (!t.emoji_reactions) return t; if (!t.emoji_reactions) return t;
if (t.reblog) t.reblog = toTextWithReaction([t.reblog], host)[0]; if (t.reblog) t.reblog = toTextWithReaction([t.reblog], host)[0];
const reactions = t.emoji_reactions.map((r) => { const reactions = t.emoji_reactions.map((r) => {
@ -71,6 +73,7 @@ export function toTextWithReaction(status: Entity.Status[], host: string) {
t.content = `<p>${autoLinker(t.content, host)}</p><p>${reactions.join( t.content = `<p>${autoLinker(t.content, host)}</p><p>${reactions.join(
", ", ", ",
)}</p>`; )}</p>`;
*/
return t; return t;
}); });
} }