2019-01-15 08:41:05 +00:00
|
|
|
package org.thoughtcrime.securesms.linkpreview;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.HashSet;
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
public class LinkPreviewDomains {
|
|
|
|
public static final Set<String> LINKS = new HashSet<>(Arrays.asList(
|
|
|
|
"youtube.com",
|
|
|
|
"www.youtube.com",
|
|
|
|
"m.youtube.com",
|
|
|
|
"youtu.be",
|
|
|
|
"reddit.com",
|
|
|
|
"www.reddit.com",
|
|
|
|
"m.reddit.com",
|
|
|
|
"imgur.com",
|
|
|
|
"www.imgur.com",
|
|
|
|
"m.imgur.com",
|
|
|
|
"instagram.com",
|
|
|
|
"www.instagram.com",
|
2019-04-12 22:20:41 +00:00
|
|
|
"m.instagram.com",
|
|
|
|
"pinterest.com",
|
|
|
|
"www.pinterest.com",
|
|
|
|
"pin.it"
|
2019-01-15 08:41:05 +00:00
|
|
|
));
|
|
|
|
|
|
|
|
public static final Set<String> IMAGES = new HashSet<>(Arrays.asList(
|
|
|
|
"ytimg.com",
|
|
|
|
"cdninstagram.com",
|
2019-02-04 17:05:24 +00:00
|
|
|
"fbcdn.net",
|
2019-01-15 08:41:05 +00:00
|
|
|
"redd.it",
|
2019-04-12 22:20:41 +00:00
|
|
|
"imgur.com",
|
|
|
|
"pinimg.com"
|
2019-01-15 08:41:05 +00:00
|
|
|
));
|
|
|
|
}
|