summaryrefslogtreecommitdiff
path: root/internal/processing/fedi/emoji.go
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/processing/fedi/emoji.go
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/processing/fedi/emoji.go')
-rw-r--r--internal/processing/fedi/emoji.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/processing/fedi/emoji.go b/internal/processing/fedi/emoji.go
index 4acf8c671..9ac0ea244 100644
--- a/internal/processing/fedi/emoji.go
+++ b/internal/processing/fedi/emoji.go
@@ -36,7 +36,7 @@ func (p *Processor) EmojiGet(ctx context.Context, requestedEmojiID string) (inte
return nil, gtserror.NewErrorNotFound(fmt.Errorf("database error getting emoji with id %s: %s", requestedEmojiID, err))
}
- if requestedEmoji.Domain != "" {
+ if !requestedEmoji.IsLocal() {
return nil, gtserror.NewErrorNotFound(fmt.Errorf("emoji with id %s doesn't belong to this instance (domain %s)", requestedEmojiID, requestedEmoji.Domain))
}