mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-26 03:03:31 -06: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
|
|
@ -308,7 +308,7 @@ func (m *Manager) RefreshEmoji(
|
|||
// paths before they get updated with new
|
||||
// path ID. These are required for later
|
||||
// deleting the old image files on refresh.
|
||||
shortcodeDomain := util.ShortcodeDomain(emoji)
|
||||
shortcodeDomain := emoji.ShortcodeDomain()
|
||||
oldStaticPath := emoji.ImageStaticPath
|
||||
oldPath := emoji.ImagePath
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue