summaryrefslogtreecommitdiff
path: root/internal/processing/admin
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-07-03 15:53:54 -0700
committerLibravatar GitHub <noreply@github.com>2024-07-03 15:53:54 -0700
commitfde0c6bc8cce2d86269faf33739281a533566455 (patch)
treeeede4b3eab1e9b36443c3a5afdbbc38cb106b751 /internal/processing/admin
parent[docs] Update how to enable http2 on nginx (#3066) (diff)
downloadgotosocial-fde0c6bc8cce2d86269faf33739281a533566455.tar.xz
[chore] Allow gtsmodel to depend on util (#3068)
Convert one free function into a gtsmodel.Emoji method so that util does not depend on gtsmodel and can be used from it in the future
Diffstat (limited to 'internal/processing/admin')
-rw-r--r--internal/processing/admin/emoji.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/admin/emoji.go b/internal/processing/admin/emoji.go
index 4d1b464d3..c023fabd8 100644
--- a/internal/processing/admin/emoji.go
+++ b/internal/processing/admin/emoji.go
@@ -112,9 +112,9 @@ func (p *Processor) EmojisGet(
Items: items,
Path: "api/v1/admin/custom_emojis",
NextMaxIDKey: "max_shortcode_domain",
- NextMaxIDValue: util.ShortcodeDomain(emojis[count-1]),
+ NextMaxIDValue: emojis[count-1].ShortcodeDomain(),
PrevMinIDKey: "min_shortcode_domain",
- PrevMinIDValue: util.ShortcodeDomain(emojis[0]),
+ PrevMinIDValue: emojis[0].ShortcodeDomain(),
Limit: limit,
ExtraQueryParams: []string{
emojisGetFilterParams(