Update StatusController

pull/1830/head
Daniel Supernault 5 years ago
parent 026b59f025
commit d5d960e2f0
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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');

Loading…
Cancel
Save