Always use direct DFRN transport on local contacts

This commit is contained in:
Michael 2019-09-21 12:39:07 +00:00
parent 7e600df9a6
commit c364a77d63
3 changed files with 36 additions and 8 deletions

View file

@ -568,6 +568,11 @@ class Notifier
*/
private static function skipDFRN($contact, $item, $cmd)
{
// Use DFRN if we are on the same site
if (Contact::isLocal($contact['url'])) {
return false;
}
// Don't skip when author or owner don't have AP profiles
if ((!empty($item['author-link']) && empty(APContact::getByURL($item['author-link'], false))) || (!empty($item['owner-link']) && empty(APContact::getByURL($item['owner-link'], false)))) {
return false;