mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
Merge pull request #13663 from annando/issue-13607
Issue 13607: Use privacy setting for "remote self"
This commit is contained in:
commit
5c3227ac4c
1 changed files with 4 additions and 1 deletions
|
@ -2566,11 +2566,14 @@ 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['private'] = self::PUBLIC;
|
|
||||||
$datarray['app'] = 'Feed';
|
$datarray['app'] = 'Feed';
|
||||||
$result = true;
|
$result = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($result) {
|
||||||
|
unset($datarray['private']);
|
||||||
|
}
|
||||||
|
|
||||||
return (bool)$result;
|
return (bool)$result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue