From fde0c6bc8cce2d86269faf33739281a533566455 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Wed, 3 Jul 2024 15:53:54 -0700 Subject: [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 --- internal/processing/admin/emoji.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/processing/admin') 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( -- cgit v1.2.3