mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
fix: remove (broken/deprecated) built-in custom emoji
these have been broken for a while due to the data loss when insert's server failed, and were also deprecated upon the addition of custom server emoji. they were meant to be temporary anyway, and other clients (including the new web app) don't implement them, so let's remove them to avoid confusion.
This commit is contained in:
@@ -43,11 +43,11 @@ function toCodePoint(rune: string) {
|
||||
}
|
||||
|
||||
export function parseEmoji(emoji: string) {
|
||||
if (emoji.startsWith("custom:")) {
|
||||
return `https://dl.insrt.uk/projects/revolt/emotes/${emoji.substring(
|
||||
7,
|
||||
)}`;
|
||||
}
|
||||
// if (emoji.startsWith("custom:")) {
|
||||
// return `https://dl.insrt.uk/projects/revolt/emotes/${emoji.substring(
|
||||
// 7,
|
||||
// )}`;
|
||||
// }
|
||||
|
||||
const codepoint = toCodePoint(emoji);
|
||||
return `https://static.revolt.chat/emoji/${EMOJI_PACK}/${codepoint}.svg?rev=${REVISION}`;
|
||||
|
||||
Reference in New Issue
Block a user