Update StatusService, invalidate profile embed cache on deletion

This commit is contained in:
Daniel Supernault 2021-07-27 00:13:03 -06:00
parent 3f8acb1266
commit acaf630dee
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -41,6 +41,10 @@ class StatusService {
public static function del($id)
{
$status = self::get($id);
if($status && isset($status['account']) && isset($status['account']['id'])) {
Cache::forget('profile:embed:' . $status['account']['id']);
}
Cache::forget('status:thumb:nsfw0' . $id);
Cache::forget('status:thumb:nsfw1' . $id);
Cache::forget('pf:services:sh:id:' . $id);