diff options
author | 2022-11-30 16:20:57 +0100 | |
---|---|---|
committer | 2022-11-30 16:20:57 +0100 | |
commit | 927117d8e3fa981f81a9de50f1c950dbec7b3549 (patch) | |
tree | ba509d5a14d5f2def49b78fc50c1c0c00618d9af /internal/db | |
parent | [bugfix] change page width to prevent scrollbar overflow (#1182) (diff) | |
download | gotosocial-927117d8e3fa981f81a9de50f1c950dbec7b3549.tar.xz |
[bugfix] Avoid accidentally marking changed emojis as orphaned + pruning them (#1188)
* add predictable instance account to tests, use it in emoji urls + paths
* use static image url to select emojis when pruning orphaned
Diffstat (limited to 'internal/db')
-rw-r--r-- | internal/db/bundb/emoji_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/emoji_test.go b/internal/db/bundb/emoji_test.go index 786d41e5d..f54f71ad0 100644 --- a/internal/db/bundb/emoji_test.go +++ b/internal/db/bundb/emoji_test.go @@ -51,7 +51,7 @@ func (suite *EmojiTestSuite) TestDeleteEmojiByID() { } func (suite *EmojiTestSuite) TestGetEmojiByStaticURL() { - emoji, err := suite.db.GetEmojiByStaticURL(context.Background(), "http://localhost:8080/fileserver/01F8MH17FWEB39HZJ76B6VXSKF/emoji/static/01F8MH9H8E4VG3KDYJR9EGPXCQ.png") + emoji, err := suite.db.GetEmojiByStaticURL(context.Background(), "http://localhost:8080/fileserver/01AY6P665V14JJR0AFVRT7311Y/emoji/static/01F8MH9H8E4VG3KDYJR9EGPXCQ.png") suite.NoError(err) suite.NotNil(emoji) suite.Equal("rainbow", emoji.Shortcode) |