]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only provide Notice oEmbed data for local notices
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 31 Dec 2015 00:55:18 +0000 (01:55 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 31 Dec 2015 00:55:18 +0000 (01:55 +0100)
plugins/Oembed/OembedPlugin.php

index c51e0bfad1626e983e0a5bf8f1581b37856628bf..f9bd2af896c31818109506c40c7a158074ab89dd 100644 (file)
@@ -77,6 +77,9 @@ class OembedPlugin extends Plugin
                 'title'=>'oEmbed'),null);
             break;
         case 'shownotice':
+            if (!$action->notice->isLocal()) {
+                break;
+            }
             try {
                 $action->element('link',array('rel'=>'alternate',
                     'type'=>'application/json+oembed',