Change domain for sharing sticker packs

This commit is contained in:
Scott Nonnenberg 2019-11-13 16:12:36 -08:00 committed by Ken Powers
parent 430b6377b0
commit 8590a047c7
2 changed files with 6 additions and 6 deletions

View file

@ -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;

View file

@ -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',