Merge pull request #13663 from annando/issue-13607

Issue 13607: Use privacy setting for "remote self"
This commit is contained in:
Hypolite Petovan 2023-11-24 21:19:52 -05:00 committed by GitHub
commit 5c3227ac4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -2566,11 +2566,14 @@ class Item
$result = self::insert($datarray2);
Logger::info('remote-self post original item', ['contact' => $contact['url'], 'result' => $result, 'item' => $datarray2]);
} else {
$datarray['private'] = self::PUBLIC;
$datarray['app'] = 'Feed';
$result = true;
}
if ($result) {
unset($datarray['private']);
}
return (bool)$result;
}