1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 08:44:02 +00:00

Update StatusController

This commit is contained in:
Daniel Supernault 2019-11-24 00:42:59 -07:00
parent 026b59f025
commit d5d960e2f0
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -76,7 +76,10 @@ class StatusController extends Controller
public function showEmbed(Request $request, $username, int $id)
{
$profile = Profile::whereNull(['domain','status'])->whereUsername($username)->first();
$profile = Profile::whereNull(['domain','status'])
->whereIsPrivate(false)
->whereUsername($username)
->first();
if(!$profile) {
$content = view('status.embed-removed');
return response($content)->header('X-Frame-Options', 'ALLOWALL');