forked from mirror/pixelfed
#4791 Invalidate cache after adding a collection item for data consistency
This commit is contained in:
parent
1ef885c1a1
commit
a7320535e9
1 changed files with 1 additions and 5 deletions
|
@ -166,11 +166,7 @@ class CollectionController extends Controller
|
|||
'order' => $count,
|
||||
]);
|
||||
|
||||
CollectionService::addItem(
|
||||
$collection->id,
|
||||
$status->id,
|
||||
$count
|
||||
);
|
||||
CollectionService::deleteCollection($collection->id);
|
||||
|
||||
$collection->updated_at = now();
|
||||
$collection->save();
|
||||
|
|
Loading…
Reference in a new issue