瀏覽代碼

Merge pull request #4693 from pixelfed/staging

Update AP helpers, adjust RemoteAvatarFetch ttl from 24h to 3 months
daniel 1 年之前
父節點
當前提交
ffa44c4fad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Util/ActivityPub/Helpers.php

+ 1 - 1
app/Util/ActivityPub/Helpers.php

@@ -801,7 +801,7 @@ class Helpers {
         );
         );
 
 
         if( $profile->last_fetched_at == null ||
         if( $profile->last_fetched_at == null ||
-            $profile->last_fetched_at->lt(now()->subHours(24))
+            $profile->last_fetched_at->lt(now()->subMonths(3))
         ) {
         ) {
             RemoteAvatarFetch::dispatch($profile);
             RemoteAvatarFetch::dispatch($profile);
         }
         }