kopia lustrzana https://github.com/pixelfed/pixelfed
#4791 Invalidate cache after adding a collection item for data consistency
rodzic
1ef885c1a1
commit
a7320535e9
|
@ -166,11 +166,7 @@ class CollectionController extends Controller
|
||||||
'order' => $count,
|
'order' => $count,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
CollectionService::addItem(
|
CollectionService::deleteCollection($collection->id);
|
||||||
$collection->id,
|
|
||||||
$status->id,
|
|
||||||
$count
|
|
||||||
);
|
|
||||||
|
|
||||||
$collection->updated_at = now();
|
$collection->updated_at = now();
|
||||||
$collection->save();
|
$collection->save();
|
||||||
|
|
Ładowanie…
Reference in New Issue