From 8590a047c76ac1721192395988f1a0a9c253d68b Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 13 Nov 2019 16:12:36 -0800 Subject: [PATCH] Change domain for sharing sticker packs --- js/modules/link_previews.js | 4 ++-- ts/components/conversation/Message.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/modules/link_previews.js b/js/modules/link_previews.js index 1ddc000c356a..b35a89347d76 100644 --- a/js/modules/link_previews.js +++ b/js/modules/link_previews.js @@ -38,7 +38,7 @@ const SUPPORTED_DOMAINS = [ 'pinterest.com', 'www.pinterest.com', 'pin.it', - 'signal.org', + 'signal.art', ]; function isLinkInWhitelist(link) { @@ -65,7 +65,7 @@ function isLinkInWhitelist(link) { } function isStickerPack(link) { - return (link || '').startsWith('https://signal.org/addstickers/'); + return (link || '').startsWith('https://signal.art/addstickers/'); } const SUPPORTED_MEDIA_DOMAINS = /^([^.]+\.)*(ytimg\.com|cdninstagram\.com|redd\.it|imgur\.com|fbcdn\.net|pinimg\.com)$/i; diff --git a/ts/components/conversation/Message.md b/ts/components/conversation/Message.md index 51d350a13ea7..0703234a62d2 100644 --- a/ts/components/conversation/Message.md +++ b/ts/components/conversation/Message.md @@ -3226,12 +3226,12 @@ Sticker link previews are forced to use the small link preview form, no matter t direction="incoming" i18n={util.i18n} timestamp={Date.now()} - text="Pretty sweet link: https://signal.org/addsticker/#pack_id=11111" + text="Pretty sweet link: https://signal.art/addsticker/#pack_id=11111" previews={[ { title: 'This is a really sweet post', isStickerPack: true, - domain: 'instagram.com', + domain: 'signal.art', image: { url: util.squareStickerObjectUrl, contentType: 'image/png', @@ -3250,12 +3250,12 @@ Sticker link previews are forced to use the small link preview form, no matter t i18n={util.i18n} timestamp={Date.now()} status="sent" - text="Pretty sweet link: https://signal.org/addsticker/#pack_id=11111" + text="Pretty sweet link: https://signal.art/addsticker/#pack_id=11111" previews={[ { title: 'This is a really sweet post', isStickerPack: true, - domain: 'signal.org', + domain: 'signal.art', image: { url: util.squareStickerObjectUrl, contentType: 'image/png',