Relocate check for announce

This commit is contained in:
Michael 2019-12-08 22:04:32 +00:00
parent 1b0d2f2a4a
commit b8f81d5e7d
2 changed files with 5 additions and 8 deletions

View file

@ -625,6 +625,11 @@ class Notifier
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 (Config::get('debug', 'total_ap_delivery') && ($contact['network'] == Protocol::DFRN) && !empty(APContact::getByURL($contact['url'], false))) {
return true;