mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user