Daniel Supernault преди 3 години
родител
ревизия
4ecbd7cbe4
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 1
      app/Services/FollowerService.php
  2. 2 0
      app/Services/RelationshipService.php

+ 1 - 1
app/Services/FollowerService.php

@@ -78,11 +78,11 @@ class FollowerService
 			}
 			return $profile
 				->followers()
-				->whereLocalProfile(false)
 				->get()
 				->map(function($follow) {
 					return $follow->sharedInbox ?? $follow->inbox_url;
 				})
+				->filter()
 				->unique()
 				->values()
 				->toArray();

+ 2 - 0
app/Services/RelationshipService.php

@@ -57,6 +57,8 @@ class RelationshipService
 
 	public static function refresh($aid, $tid)
 	{
+		Cache::forget('pf:services:follow:audience:' . $aid);
+		Cache::forget('pf:services:follow:audience:' . $tid);
 		self::delete($tid, $aid);
 		self::delete($aid, $tid);
 		self::get($tid, $aid);