]> git.mxchange.org Git - friendica.git/blobdiff - mod/share.php
Fixes:
[friendica.git] / mod / share.php
index ac708c40f11b6fb6ce4970c82ee06cfb3e1d40c5..fb4495019e47db1941a2fe10e358f2e05259ff39 100644 (file)
@@ -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();
        }