mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 03:06:14 -06:00
make similar changes for emoji, even if not necessary, just to keep in-sync
This commit is contained in:
parent
06299a3ed9
commit
37cca66030
1 changed files with 13 additions and 9 deletions
|
|
@ -134,19 +134,23 @@ func (d *Dereferencer) RefreshEmoji(
|
||||||
*gtsmodel.Emoji,
|
*gtsmodel.Emoji,
|
||||||
error,
|
error,
|
||||||
) {
|
) {
|
||||||
// Check emoji is up-to-date
|
// Check uri up-to-date.
|
||||||
// with provided extra info.
|
if info.URI != nil &&
|
||||||
switch {
|
*info.URI != emoji.URI {
|
||||||
case info.URI != nil &&
|
|
||||||
*info.URI != emoji.URI:
|
|
||||||
emoji.URI = *info.URI
|
emoji.URI = *info.URI
|
||||||
force = true
|
force = true
|
||||||
case info.ImageRemoteURL != nil &&
|
}
|
||||||
*info.ImageRemoteURL != emoji.ImageRemoteURL:
|
|
||||||
|
// Check image remote URL up-to-date.
|
||||||
|
if info.ImageRemoteURL != nil &&
|
||||||
|
*info.ImageRemoteURL != emoji.ImageRemoteURL {
|
||||||
emoji.ImageRemoteURL = *info.ImageRemoteURL
|
emoji.ImageRemoteURL = *info.ImageRemoteURL
|
||||||
force = true
|
force = true
|
||||||
case info.ImageStaticRemoteURL != nil &&
|
}
|
||||||
*info.ImageStaticRemoteURL != emoji.ImageStaticRemoteURL:
|
|
||||||
|
// Check image static remote URL up-to-date.
|
||||||
|
if info.ImageStaticRemoteURL != nil &&
|
||||||
|
*info.ImageStaticRemoteURL != emoji.ImageStaticRemoteURL {
|
||||||
emoji.ImageStaticRemoteURL = *info.ImageStaticRemoteURL
|
emoji.ImageStaticRemoteURL = *info.ImageStaticRemoteURL
|
||||||
force = true
|
force = true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue