mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 12:12:24 -05: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:
parent
27bcc1fcbd
commit
fde0c6bc8c
5 changed files with 11 additions and 32 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue