mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-24 23:35:23 +00:00
Update Inbox, allow storing Create->Note activities without any local followers, disabled by default
This commit is contained in:
parent
4b2c66f557
commit
9fa6b3f7aa
2 changed files with 47 additions and 43 deletions
|
@ -281,7 +281,8 @@ class Inbox
|
||||||
}
|
}
|
||||||
|
|
||||||
if($actor->followers_count == 0) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,11 @@ return [
|
||||||
'enabled' => env('AP_LOGGER_ENABLED', false),
|
'enabled' => env('AP_LOGGER_ENABLED', false),
|
||||||
'driver' => 'log'
|
'driver' => 'log'
|
||||||
]
|
]
|
||||||
]
|
],
|
||||||
|
|
||||||
|
'ingest' => [
|
||||||
|
'store_notes_without_followers' => env('AP_INGEST_STORE_NOTES_WITHOUT_FOLLOWERS', false),
|
||||||
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'atom' => [
|
'atom' => [
|
||||||
|
@ -52,6 +56,5 @@ return [
|
||||||
|
|
||||||
// max size in bytes, default is 2mb
|
// max size in bytes, default is 2mb
|
||||||
'max_size' => env('CUSTOM_EMOJI_MAX_SIZE', 2000000),
|
'max_size' => env('CUSTOM_EMOJI_MAX_SIZE', 2000000),
|
||||||
]
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue