mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update StatusController, fix unlisted post guest/ap access bug
This commit is contained in:
parent
3437d9bb48
commit
83098428bb
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class StatusController extends Controller
|
|||
$status['account']['username'] != $username ||
|
||||
isset($status['reblog']), 404);
|
||||
|
||||
abort_if($status['visibility'] != 'public' && ! $request->user(), 403, 'Invalid permission');
|
||||
abort_if(! in_array($status['visibility'], ['public', 'unlisted']) && ! $request->user(), 403, 'Invalid permission');
|
||||
|
||||
if ($request->wantsJson() && (bool) config_cache('federation.activitypub.enabled')) {
|
||||
return $this->showActivityPub($request, $status);
|
||||
|
|
Loading…
Reference in a new issue