浏览代码

Update ProfileController

Daniel Supernault 3 年之前
父节点
当前提交
940209018a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/Http/Controllers/ProfileController.php

+ 2 - 1
app/Http/Controllers/ProfileController.php

@@ -232,7 +232,8 @@ class ProfileController extends Controller
 		}
 
 		$profile = AccountService::get($profile->id);
-		return view('profile.embed', compact('profile'))->withHeaders(['X-Frame-Options' => 'ALLOWALL']);
+		$res = view('profile.embed', compact('profile'));
+		return response($res)->withHeaders(['X-Frame-Options' => 'ALLOWALL']);
 	}
 
 	public function stories(Request $request, $username)