From 927117d8e3fa981f81a9de50f1c950dbec7b3549 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 30 Nov 2022 16:20:57 +0100 Subject: [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 --- internal/db/bundb/emoji_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/db') 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) -- cgit v1.2.3