mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-27 14:28:08 +09:00
[mastodon-client] Disable emoji reactions preview in TL
This commit is contained in:
parent
adb0f365ba
commit
fbeb809874
@ -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
Block a user