Issue 12373: Fix communication to Diaspora
This commit is contained in:
@@ -277,7 +277,7 @@ class Delivery
|
||||
private static function deliverDFRN(string $cmd, array $contact, array $owner, array $items, array $target_item, bool $public_message, bool $top_level, bool $followup, int $server_protocol = null)
|
||||
{
|
||||
// Transmit Diaspora reshares via Diaspora if the Friendica contact support Diaspora
|
||||
if (Diaspora::getReshareDetails($target_item ?? []) && Diaspora::isSupportedByContactUrl($contact['addr'], false)) {
|
||||
if (Diaspora::getReshareDetails($target_item ?? []) && Diaspora::isSupportedByContactUrl($contact['addr'])) {
|
||||
Logger::info('Reshare will be transmitted via Diaspora', ['url' => $contact['url'], 'guid' => ($target_item['guid'] ?? '') ?: $target_item['id']]);
|
||||
self::deliverDiaspora($cmd, $contact, $owner, $items, $target_item, $public_message, $top_level, $followup);
|
||||
return;
|
||||
|
||||
@@ -191,7 +191,7 @@ class Notifier
|
||||
// when the original comment author does support the Diaspora protocol.
|
||||
if ($thr_parent['author-link'] && $target_item['parent-uri'] != $target_item['thr-parent']) {
|
||||
$diaspora_delivery = Diaspora::isSupportedByContactUrl($thr_parent['author-link']);
|
||||
if ($diaspora_delivery && empty($target_item['signed_text'])) {
|
||||
if ($diaspora_delivery && empty($target_item['signed_text'])) {
|
||||
Logger::debug('Post has got no Diaspora signature, so there will be no Diaspora delivery', ['guid' => $target_item['guid'], 'uri-id' => $target_item['uri-id']]);
|
||||
$diaspora_delivery = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user