Explorar o código

Update moderation api, invalidate profile embed

Daniel Supernault %!s(int64=4) %!d(string=hai) anos
pai
achega
b2501bfcc3
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      app/Http/Controllers/InternalApiController.php

+ 4 - 0
app/Http/Controllers/InternalApiController.php

@@ -312,6 +312,10 @@ class InternalApiController extends Controller
                 }
             break;
         }
+
+        Cache::forget('_api:statuses:recent_9:' . $status->profile_id);
+        Cache::forget('profile:embed:' . $status->profile_id);
+
         return ['msg' => 200];
     }