logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: a9c2d373157708c9d08289edb55069a9a054a7e6
parent 5384d3b7a2d006d5d760680170b9998bf115862a
Author: Henry Jameson <me@hjkos.com>
Date:   Thu, 15 Aug 2024 21:49:45 +0300

ok i'm dumb, no manual caching needed tehepero

Diffstat:

Msrc/modules/instance.js20+++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/src/modules/instance.js b/src/modules/instance.js @@ -250,21 +250,15 @@ const instance = { }, {}) }, standardEmojiList (state) { - if (!state.standardEmojiList) { - state.standardEmojiList = SORTED_EMOJI_GROUP_IDS - .map(groupId => (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations))) - .reduce((a, b) => a.concat(b), []) - } - return state.standardEmojiList + return SORTED_EMOJI_GROUP_IDS + .map(groupId => (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations))) + .reduce((a, b) => a.concat(b), []) }, standardEmojiGroupList (state) { - if (!state.standardEmojiGroupList) { - state.standardEmojiGroupList = SORTED_EMOJI_GROUP_IDS.map(groupId => ({ - id: groupId, - emojis: (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations)) - })) - } - return state.standardEmojiGroupList + return SORTED_EMOJI_GROUP_IDS.map(groupId => ({ + id: groupId, + emojis: (state.emoji[groupId] || []).map(k => injectAnnotations(k, state.unicodeEmojiAnnotations)) + })) }, instanceDomain (state) { return new URL(state.server).hostname