Fix Giphy link previews

This commit is contained in:
Niels Andriesse 2019-10-23 11:55:17 +11:00
parent c9a03bbe8a
commit bc750964a8

View File

@ -8,22 +8,34 @@ public class LinkPreviewDomains {
public static final String STICKERS = "signal.org"; public static final String STICKERS = "signal.org";
public static final Set<String> LINKS = new HashSet<>(Arrays.asList( public static final Set<String> LINKS = new HashSet<>(Arrays.asList(
// YouTube
"youtube.com", "youtube.com",
"www.youtube.com", "www.youtube.com",
"m.youtube.com", "m.youtube.com",
"youtu.be", "youtu.be",
// Reddit
"reddit.com", "reddit.com",
"www.reddit.com", "www.reddit.com",
"m.reddit.com", "m.reddit.com",
// Imgur
"imgur.com", "imgur.com",
"www.imgur.com", "www.imgur.com",
"m.imgur.com", "m.imgur.com",
// Instagram
"instagram.com", "instagram.com",
"www.instagram.com", "www.instagram.com",
"m.instagram.com", "m.instagram.com",
// Pinterest
"pinterest.com", "pinterest.com",
"www.pinterest.com", "www.pinterest.com",
"pin.it" "pin.it",
// Giphy
"giphy.com",
"media.giphy.com",
"media1.giphy.com",
"media2.giphy.com",
"media3.giphy.com",
"gph.is"
)); ));
public static final Set<String> IMAGES = new HashSet<>(Arrays.asList( public static final Set<String> IMAGES = new HashSet<>(Arrays.asList(