Fix wrong square bracket position in Worker\Delivery->deliverDFRN
- Address second part of https://github.com/friendica/friendica/issues/12488#issuecomment-1364487793
This commit is contained in:
parent
e8420dcb71
commit
482eeb7109
|
@ -213,7 +213,7 @@ class Delivery
|
|||
// Also transmit via Diaspora if this is a direct answer to a Diaspora comment.
|
||||
// This is done since the uri wouldn't match (Diaspora doesn't transmit it)
|
||||
// Also transmit relayed posts from Diaspora contacts via Diaspora.
|
||||
if (($contact['network'] != Protocol::DIASPORA) && in_array(Protocol::DIASPORA, [$parent['network'] ?? '', $thr_parent['network'] ?? '', $target_item['network']] ?? '')) {
|
||||
if (($contact['network'] != Protocol::DIASPORA) && in_array(Protocol::DIASPORA, [$parent['network'] ?? '', $thr_parent['network'] ?? '', $target_item['network'] ?? ''])) {
|
||||
Logger::info('Enforcing the Diaspora protocol', ['id' => $contact['id'], 'network' => $contact['network'], 'parent' => $parent['network'], 'thread-parent' => $thr_parent['network'], 'post' => $target_item['network']]);
|
||||
$contact['network'] = Protocol::DIASPORA;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user