[NineGagBridge] In post URI replace scheme from "http" to "https"

This commit is contained in:
Gregor Santner 2020-10-15 11:12:54 +02:00 committed by GitHub
parent 45e2f385b3
commit a332a5a414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ class NineGagBridge extends BridgeAbstract {
}
if (!$AvoidElement) {
$item['uri'] = $post['url'];
$item['uri'] = preg_replace("/^http:/i", "https:", $post['url']);
$item['title'] = $post['title'];
$item['content'] = self::getContent($post);
$item['categories'] = self::getCategories($post);