mirror of
https://github.com/friendica/friendica
synced 2024-12-23 00:40:15 +00:00
Issue 10262: Don't accept BCC posts from non followers
This commit is contained in:
parent
8c99d3acc1
commit
a3c323b366
1 changed files with 6 additions and 0 deletions
|
@ -602,6 +602,12 @@ class Processor
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!$item['isForum'] && ($receiver != 0) && ($item['gravity'] == GRAVITY_PARENT) &&
|
||||
($item['post-reason'] == Item::PR_BCC) && !Contact::isSharingByURL($activity['author'], $receiver)) {
|
||||
Logger::info('Top level post via BCC from a non follower, ignoring', ['uid' => $receiver, 'contact' => $item['contact-id']]);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (DI::pConfig()->get($receiver, 'system', 'accept_only_sharer', false) && ($receiver != 0) && ($item['gravity'] == GRAVITY_PARENT)) {
|
||||
$skip = !Contact::isSharingByURL($activity['author'], $receiver);
|
||||
|
||||
|
|
Loading…
Reference in a new issue