mirror of
https://github.com/friendica/friendica
synced 2025-05-06 01:04:16 +02:00
Always use direct DFRN transport on local contacts
This commit is contained in:
parent
7e600df9a6
commit
c364a77d63
3 changed files with 36 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue