Browse Source

Update moderation api, invalidate profile embed

Daniel Supernault 4 years ago
parent
commit
b2501bfcc3
1 changed files with 4 additions and 0 deletions
  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];
     }