]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6882 from annando/follow-peertube
authorPhilipp <admin+Github@philipp.info>
Thu, 14 Mar 2019 22:39:04 +0000 (23:39 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2019 22:39:04 +0000 (23:39 +0100)
Issue 6874: Follow peertube

mod/follow.php

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