mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-23 06:51:27 +00:00
Update StatusController
This commit is contained in:
parent
026b59f025
commit
d5d960e2f0
1 changed files with 4 additions and 1 deletions
|
@ -76,7 +76,10 @@ class StatusController extends Controller
|
||||||
|
|
||||||
public function showEmbed(Request $request, $username, int $id)
|
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) {
|
if(!$profile) {
|
||||||
$content = view('status.embed-removed');
|
$content = view('status.embed-removed');
|
||||||
return response($content)->header('X-Frame-Options', 'ALLOWALL');
|
return response($content)->header('X-Frame-Options', 'ALLOWALL');
|
||||||
|
|
Loading…
Reference in a new issue