mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
[mastodon-client] Disable emoji reactions preview in TL
This commit is contained in:
parent
adb0f365ba
commit
fbeb809874
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue