diff --git a/CHANGELOG.md b/CHANGELOG.md index 17a011a9..8f6dfb81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix parsing tuples in Pleroma.Upload.Filter.Mogrify and Pleroma.Emails.Mailer settings - Fix settings submit button position on wide screens when sidebar menu is open +- Updates links for downloading remote emoji packs ## [2.0] - 2020-02-27 diff --git a/src/views/emojiPacks/components/EmojiPack.vue b/src/views/emojiPacks/components/EmojiPack.vue index e20dc216..d31fcf8a 100644 --- a/src/views/emojiPacks/components/EmojiPack.vue +++ b/src/views/emojiPacks/components/EmojiPack.vue @@ -62,7 +62,7 @@ @@ -92,7 +92,7 @@

- + {{ isDesktop ? $t('emoji.downloadSharedPack') : $t('emoji.downloadSharedPackMobile') }}
@@ -209,10 +209,11 @@ export default { } }, methods: { - downloadFromInstance() { + downloadFromInstance(url) { + const instanceAddress = `${new URL(url).protocol}//${new URL(url).hostname}` this.$store.dispatch( 'DownloadFrom', - { instanceAddress: this.host, packName: this.name, as: this.downloadSharedAs } + { instanceAddress, packName: this.name, as: this.downloadSharedAs } ).then(() => this.$store.dispatch('ReloadEmoji')) .then(() => this.$store.dispatch('SetLocalEmojiPacks')) },