Fixed issue where giphy results weren't loading.

This commit is contained in:
Greyson Parrelli 2019-05-06 15:48:43 -07:00
parent c7b626082c
commit eab23a9e66
2 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,7 @@ public class LinkPreviewDomains {
"fbcdn.net", "fbcdn.net",
"redd.it", "redd.it",
"imgur.com", "imgur.com",
"pinimg.com" "pinimg.com",
"giphy.com"
)); ));
} }

View File

@ -29,7 +29,6 @@ public class ContentProxySelector extends ProxySelector {
static { static {
WHITELISTED_DOMAINS.addAll(LinkPreviewDomains.LINKS); WHITELISTED_DOMAINS.addAll(LinkPreviewDomains.LINKS);
WHITELISTED_DOMAINS.addAll(LinkPreviewDomains.IMAGES); WHITELISTED_DOMAINS.addAll(LinkPreviewDomains.IMAGES);
WHITELISTED_DOMAINS.add("giphy.com");
} }
private final List<Proxy> CONTENT = new ArrayList<Proxy>(1) {{ private final List<Proxy> CONTENT = new ArrayList<Proxy>(1) {{