Fix profile bookmarks
This commit is contained in:
parent
e3760749ae
commit
46e2cece94
2 changed files with 122 additions and 1 deletions
|
@ -238,7 +238,7 @@ class ProfileController extends Controller
|
|||
$timeline = $user->bookmarks()->withCount(['likes','comments'])->orderBy('created_at', 'desc')->simplePaginate(10);
|
||||
$is_following = ($owner == false && Auth::check()) ? $user->followedBy(Auth::user()->profile) : false;
|
||||
$is_admin = is_null($user->domain) ? $user->user->is_admin : false;
|
||||
return view('profile.show', compact('user', 'settings', 'owner', 'following', 'timeline', 'is_following', 'is_admin'));
|
||||
return view('profile.bookmarks', compact('user', 'profile', 'settings', 'owner', 'following', 'timeline', 'is_following', 'is_admin'));
|
||||
}
|
||||
|
||||
public function createCollection(Request $request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue