X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FProtocol%2FOStatus.php;h=a2c9a84473ef33d888dda6f9a895ffbf3f8a0e90;hb=314bf92eadca7edef72cdc94669c5f961a802666;hp=2b3d7cb1214d1a7071f7e43802cf0d2eb74f062b;hpb=618dda7dd258f2368fc607e51c6d680de3f88be8;p=friendica.git diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 2b3d7cb121..a2c9a84473 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -500,7 +500,7 @@ class OStatus if (!$valid) { // If not, then it depends on this setting - $valid = !$uid || DI::pConfig()->get($uid, 'system', 'accept_only_sharer', Item::COMPLETION_COMMENT) !== Item::COMPLETION_NONE; + $valid = !$uid || DI::pConfig()->get($uid, 'system', 'accept_only_sharer') != Item::COMPLETION_NONE; if ($valid) { Logger::info("Item with uri ".self::$itemlist[0]['uri']." will be imported due to the system settings."); @@ -509,7 +509,7 @@ class OStatus Logger::info("Item with uri ".self::$itemlist[0]['uri']." belongs to a contact (".self::$itemlist[0]['contact-id']."). It will be imported."); } - if ($valid && DI::pConfig()->get($uid, 'system', 'accept_only_sharer', Item::COMPLETION_COMMENT) !== Item::COMPLETION_LIKE) { + if ($valid && DI::pConfig()->get($uid, 'system', 'accept_only_sharer') != Item::COMPLETION_LIKE) { // Never post a thread when the only interaction by our contact was a like $valid = false; $verbs = [Activity::POST, Activity::SHARE]; @@ -1731,6 +1731,7 @@ class OStatus if ($owner['contact-type'] == Contact::TYPE_COMMUNITY) { $contact = Contact::getByURL($item['author-link']) ?: $owner; + $contact['nickname'] = $contact['nickname'] ?? $contact['nick']; $author = self::addAuthor($doc, $contact, false); $entry->appendChild($author); }