diff options
| author | 2024-07-03 15:53:54 -0700 | |
|---|---|---|
| committer | 2024-07-03 15:53:54 -0700 | |
| commit | fde0c6bc8cce2d86269faf33739281a533566455 (patch) | |
| tree | eede4b3eab1e9b36443c3a5afdbbc38cb106b751 /internal/processing/admin | |
| parent | [docs] Update how to enable http2 on nginx (#3066) (diff) | |
| download | gotosocial-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.go | 4 | 
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( | 
