Support unlisted public posts

This commit is contained in:
Michael
2020-03-02 07:57:23 +00:00
parent 357c0072bd
commit ca1b92bb34
29 changed files with 146 additions and 100 deletions

View File

@@ -34,7 +34,7 @@ function share_init(App $a) {
'guid', 'created', 'plink', 'title'];
$item = Item::selectFirst($fields, ['id' => $post_id]);
if (!DBA::isResult($item) || $item['private'] == 1) {
if (!DBA::isResult($item) || $item['private'] == Item::PRIVATE) {
exit();
}