From 8bbf3f3699beefe6dccce0b349ce7912a28f1bc2 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 23 Nov 2022 21:10:57 +0000 Subject: [PATCH] "MIRROR_FORWARDED" is no more --- src/Model/Item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 48c578e85f..911e4216f0 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2312,7 +2312,7 @@ class Item $datarray2 = $datarray; Logger::info('remote-self start', ['contact' => $contact['url'], 'remote_self'=> $contact['remote_self'], 'item' => $datarray]); - if ($contact['remote_self'] == Contact::MIRROR_OWN_POST) { + if (in_array($contact['remote_self'], [Contact::MIRROR_OWN_POST, Contact::MIRROR_FORWARDED])) { $self = DBA::selectFirst('contact', ['id', 'name', 'url', 'thumb'], ['uid' => $contact['uid'], 'self' => true]); if (DBA::isResult($self)) { @@ -2358,8 +2358,8 @@ class Item $result = self::insert($datarray2); Logger::info('remote-self post original item', ['contact' => $contact['url'], 'result'=> $result, 'item' => $datarray2]); } else { - $datarray["app"] = "Feed"; - $result = true; + Logger::info('No valid mirroring option', ['uid' => $contact['uid'], 'id' => $contact['id'], 'network' => $contact['network'], 'remote_self' => $contact['remote_self']]); + return false; } return (bool)$result; -- 2.39.2