From fde0c6bc8cce2d86269faf33739281a533566455 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Wed, 3 Jul 2024 15:53:54 -0700 Subject: [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 --- internal/media/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/media/manager.go') 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 -- cgit v1.2.3