Merge pull request #6882 from annando/follow-peertube

Issue 6874: Follow peertube
This commit is contained in:
Philipp 2019-03-14 23:39:04 +01:00 committed by GitHub
commit eb4fb97348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,11 @@ function follow_content(App $a)
$uid = local_user(); $uid = local_user();
$url = Strings::escapeTags(trim(defaults($_REQUEST, 'url', ''))); $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) { if (!$url) {
$a->internalRedirect($return_path); $a->internalRedirect($return_path);
} }