mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
"MIRROR_FORWARDED" is no more
This commit is contained in:
parent
7b563fd307
commit
8bbf3f3699
1 changed files with 3 additions and 3 deletions
|
@ -2312,7 +2312,7 @@ class Item
|
||||||
|
|
||||||
$datarray2 = $datarray;
|
$datarray2 = $datarray;
|
||||||
Logger::info('remote-self start', ['contact' => $contact['url'], 'remote_self'=> $contact['remote_self'], 'item' => $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'],
|
$self = DBA::selectFirst('contact', ['id', 'name', 'url', 'thumb'],
|
||||||
['uid' => $contact['uid'], 'self' => true]);
|
['uid' => $contact['uid'], 'self' => true]);
|
||||||
if (DBA::isResult($self)) {
|
if (DBA::isResult($self)) {
|
||||||
|
@ -2358,8 +2358,8 @@ class Item
|
||||||
$result = self::insert($datarray2);
|
$result = self::insert($datarray2);
|
||||||
Logger::info('remote-self post original item', ['contact' => $contact['url'], 'result'=> $result, 'item' => $datarray2]);
|
Logger::info('remote-self post original item', ['contact' => $contact['url'], 'result'=> $result, 'item' => $datarray2]);
|
||||||
} else {
|
} else {
|
||||||
$datarray["app"] = "Feed";
|
Logger::info('No valid mirroring option', ['uid' => $contact['uid'], 'id' => $contact['id'], 'network' => $contact['network'], 'remote_self' => $contact['remote_self']]);
|
||||||
$result = true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (bool)$result;
|
return (bool)$result;
|
||||||
|
|
Loading…
Reference in a new issue