diff options
| author | 2021-09-01 18:29:25 +0200 | |
|---|---|---|
| committer | 2021-09-01 18:29:25 +0200 | |
| commit | 4696e1a7b389599fa981f334b343daa911b11f5d (patch) | |
| tree | d1ca0c896cdacb82ad7c64ee150aa32b37d4c053 /internal/api/client/admin | |
| parent | move oauth models into gtsmodel (diff) | |
| download | gotosocial-4696e1a7b389599fa981f334b343daa911b11f5d.tar.xz | |
moving stuff around
Diffstat (limited to 'internal/api/client/admin')
| -rw-r--r-- | internal/api/client/admin/emojicreate.go | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/internal/api/client/admin/emojicreate.go b/internal/api/client/admin/emojicreate.go index 859933b16..019298976 100644 --- a/internal/api/client/admin/emojicreate.go +++ b/internal/api/client/admin/emojicreate.go @@ -28,7 +28,7 @@ import (  	"github.com/superseriousbusiness/gotosocial/internal/api/model"  	"github.com/superseriousbusiness/gotosocial/internal/media"  	"github.com/superseriousbusiness/gotosocial/internal/oauth" -	"github.com/superseriousbusiness/gotosocial/internal/util" +	"github.com/superseriousbusiness/gotosocial/internal/validate"  )  // emojiCreateRequest swagger:operation POST /api/v1/admin/custom_emojis emojiCreate @@ -132,5 +132,5 @@ func validateCreateEmoji(form *model.EmojiCreateRequest) error {  		return fmt.Errorf("file size limit exceeded: limit is %d bytes but emoji was %d bytes", media.EmojiMaxBytes, form.Image.Size)  	} -	return util.ValidateEmojiShortcode(form.Shortcode) +	return validate.EmojiShortcode(form.Shortcode)  } | 
