[mastodon-client] Disable emoji reactions preview in TL
This commit is contained in:
parent
ab18c22fa9
commit
2a5edd3ca1
|
@ -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 = `<p>${autoLinker(t.content, host)}</p><p>${reactions.join(
|
||||
", ",
|
||||
)}</p>`;
|
||||
*/
|
||||
return t;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue