X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fshare.php;h=fb4495019e47db1941a2fe10e358f2e05259ff39;hb=19209f6826fc513b5e1bc3460c212a4b80c02049;hp=7eb588112b90ecf2fe00fabcfaf02364abf71f17;hpb=0134fa31d1ee3fb093d0979f01a300957e1b7871;p=friendica.git diff --git a/mod/share.php b/mod/share.php index 7eb588112b..fb4495019e 100644 --- a/mod/share.php +++ b/mod/share.php @@ -13,9 +13,9 @@ function share_init(App $a) { $fields = ['private', 'body', 'author-name', 'author-link', 'author-avatar', 'guid', 'created', 'plink', 'title']; - $item = Item::selectFirst(local_user(), $fields, ['id' => $post_id]); + $item = Item::selectFirst($fields, ['id' => $post_id]); - if (!DBM::is_result($item) || $item['private']) { + if (!DBM::is_result($item) || $item['private'] == 1) { killme(); }