]> git.mxchange.org Git - friendica.git/commitdiff
Issue 6874: Allow remote follow via Peertube
authorMichael <heluecht@pirati.ca>
Thu, 14 Mar 2019 19:45:51 +0000 (19:45 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 14 Mar 2019 19:45:51 +0000 (19:45 +0000)
mod/follow.php

index 404c79ea1048c60cfd8ade9c8f85f7e1a0d60910..f658ef7b2a98ebfd5397bafbe1945349f9d88ada 100644 (file)
@@ -62,6 +62,9 @@ function follow_content(App $a)
        $uid = local_user();
        $url = Strings::escapeTags(trim(defaults($_REQUEST, 'url', '')));
 
+       // Issue 6874: Allow remote following from Oeertube
+       $url = str_replace('acct:', '', $url);
+
        if (!$url) {
                $a->internalRedirect($return_path);
        }