Merge pull request #6407 from pixelfed/shleeable-patch-2

Bugfix: BookmarkController - BookmarkController firstOrCreate searches only by status_id missing profile_id
pull/6441/head
dansup 3 weeks ago committed by GitHub
commit a7518a3618
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -48,9 +48,10 @@ class BookmarkController extends Controller
}
}
$bookmark = Bookmark::firstOrCreate(
['status_id' => $status->id], ['profile_id' => $user->profile_id]
);
$bookmark = Bookmark::firstOrCreate([
'status_id' => $status->id,
'profile_id' => $user->profile_id
]);
if (! $bookmark->wasRecentlyCreated) {
BookmarkService::del($user->profile_id, $status->id);

Loading…
Cancel
Save