mirror of
https://github.com/friendica/friendica
synced 2025-05-05 22:24:11 +02:00
Issue 9094: Prevent announces via DFRN
This commit is contained in:
parent
bc67808f09
commit
5daec27cfb
2 changed files with 8 additions and 6 deletions
|
@ -685,17 +685,17 @@ class Notifier
|
|||
return false;
|
||||
}
|
||||
|
||||
// We deliver reshares via AP whenever possible
|
||||
if (ActivityPub\Transmitter::isAnnounce($item)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// For the time being we always deliver forum post via DFRN if possible
|
||||
// This can be removed possible at the end of 2020 when hopefully most system can process AP forum posts
|
||||
if ($owner['account-type'] == User::ACCOUNT_TYPE_COMMUNITY) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// We deliver reshares via AP whenever possible
|
||||
if (ActivityPub\Transmitter::isAnnounce($item)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Skip DFRN when the item will be (forcefully) delivered via AP
|
||||
if (DI::config()->get('debug', 'total_ap_delivery') && ($contact['network'] == Protocol::DFRN) && !empty(APContact::getByURL($contact['url'], false))) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue