Check if emoji is already a local one

This commit is contained in:
Ekaterina Vaartis 2025-08-06 22:24:49 +03:00 committed by vaartis
commit e04d7d2c97
6 changed files with 26 additions and 3 deletions

View file

@ -86,6 +86,12 @@ export default {
required: false,
type: Boolean,
default: false
},
// Assume is local to be true if unspecified, so the button isn't show where it probably should not be
isLocal: {
required: false,
type: Boolean,
default: true
}
},
// NEVER EVER TOUCH DATA INSIDE RENDER
@ -165,9 +171,11 @@ export default {
return <StillImageEmojiPopover
class="emoji img"
src={url}
shortcode={shortcode}
title={`:${shortcode}:`}
alt={`:${shortcode}:`}
shortcode={shortcode}
isLocal={this.isLocal}
/>
}
)]