summaryrefslogtreecommitdiff
path: root/internal/media/manager.go
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-07-03 15:53:54 -0700
committerLibravatar GitHub <noreply@github.com>2024-07-03 15:53:54 -0700
commitfde0c6bc8cce2d86269faf33739281a533566455 (patch)
treeeede4b3eab1e9b36443c3a5afdbbc38cb106b751 /internal/media/manager.go
parent[docs] Update how to enable http2 on nginx (#3066) (diff)
downloadgotosocial-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/media/manager.go')
-rw-r--r--internal/media/manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/manager.go b/internal/media/manager.go
index 90a2923b5..ea126e460 100644
--- a/internal/media/manager.go
+++ b/internal/media/manager.go
@@ -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