diff options
author | 2023-06-02 17:42:14 +0200 | |
---|---|---|
committer | 2023-06-02 17:42:14 +0200 | |
commit | 1f39275c0f4ff3356a480ef7f0339d54547968e5 (patch) | |
tree | 8ba20351dfc6b0f1a8caec4673ed658d7147b807 /internal/api | |
parent | [bugfix] Overwrite API client closed errors with `499 - Client Closed Request... (diff) | |
download | gotosocial-1f39275c0f4ff3356a480ef7f0339d54547968e5.tar.xz |
[bugfix] Allow lowercase emoji shortcode in frontend (#1851)
* Replace pinafore with semaphore
* Typo
* Allow lowercase emoji shortcode in frontend
* Fix failing test (corrected expected outcome)
Diffstat (limited to 'internal/api')
-rw-r--r-- | internal/api/client/admin/emojiupdate_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/client/admin/emojiupdate_test.go b/internal/api/client/admin/emojiupdate_test.go index 0fcf579ad..1f0e8de13 100644 --- a/internal/api/client/admin/emojiupdate_test.go +++ b/internal/api/client/admin/emojiupdate_test.go @@ -473,7 +473,7 @@ func (suite *EmojiUpdateTestSuite) TestEmojiUpdateCopyEmptyShortcode() { b, err := ioutil.ReadAll(result.Body) suite.NoError(err) - suite.Equal(`{"error":"Bad Request: shortcode did not pass validation, must be between 2 and 30 characters, lowercase letters, numbers, and underscores only"}`, string(b)) + suite.Equal(`{"error":"Bad Request: shortcode did not pass validation, must be between 2 and 30 characters, letters, numbers, and underscores only"}`, string(b)) } func (suite *EmojiUpdateTestSuite) TestEmojiUpdateCopyNoShortcode() { |