summaryrefslogtreecommitdiff
path: root/internal/media
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-01-29 15:57:22 +0100
committerLibravatar GitHub <noreply@github.com>2024-01-29 14:57:22 +0000
commitaa8bbe6ad2e3908bd55bd6522524784cd4383ae2 (patch)
treebc1c3d742f2ef243936d4629aa0694affdbab5ca /internal/media
parent[chore] Add a couple tests for updating list entries (#2580) (diff)
downloadgotosocial-aa8bbe6ad2e3908bd55bd6522524784cd4383ae2.tar.xz
[bugfix] Fix Postgres emoji delete, emoji category change (#2570)
* [bugfix] Fix Postgres emoji delete, emoji category change * revert trace logging * caching issue * update tests
Diffstat (limited to 'internal/media')
-rw-r--r--internal/media/processingemoji.go2
-rw-r--r--internal/media/refetch.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/media/processingemoji.go b/internal/media/processingemoji.go
index 9287f14ce..dfe7c1883 100644
--- a/internal/media/processingemoji.go
+++ b/internal/media/processingemoji.go
@@ -158,7 +158,7 @@ func (p *ProcessingEmoji) store(ctx context.Context) error {
var maxSize bytesize.Size
- if p.emoji.Domain == "" {
+ if p.emoji.IsLocal() {
// this is a local emoji upload
maxSize = config.GetMediaEmojiLocalMaxSize()
} else {
diff --git a/internal/media/refetch.go b/internal/media/refetch.go
index 8e5188178..a1483ccd4 100644
--- a/internal/media/refetch.go
+++ b/internal/media/refetch.go
@@ -61,7 +61,7 @@ func (m *Manager) RefetchEmojis(ctx context.Context, domain string, dereferenceM
}
for _, emoji := range emojis {
- if emoji.Domain == "" {
+ if emoji.IsLocal() {
// never try to refetch local emojis
continue
}