Update Inbox, allow storing Create->Note activities without any local followers, disabled by default

pull/4539/head
Daniel Supernault 2023-07-13 23:11:19 -06:00
rodzic 4b2c66f557
commit 9fa6b3f7aa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
2 zmienionych plików z 47 dodań i 43 usunięć

Wyświetl plik

@ -281,7 +281,8 @@ class Inbox
}
if($actor->followers_count == 0) {
if(FollowerService::followerCount($actor->id, true) == 0) {
if(config('federation.activitypub.ingest.store_notes_without_followers')) {
} else if(FollowerService::followerCount($actor->id, true) == 0) {
return;
}
}

Wyświetl plik

@ -25,7 +25,11 @@ return [
'enabled' => env('AP_LOGGER_ENABLED', false),
'driver' => 'log'
]
]
],
'ingest' => [
'store_notes_without_followers' => env('AP_INGEST_STORE_NOTES_WITHOUT_FOLLOWERS', false),
],
],
'atom' => [
@ -52,6 +56,5 @@ return [
// max size in bytes, default is 2mb
'max_size' => env('CUSTOM_EMOJI_MAX_SIZE', 2000000),
]
],
];