]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #5218 from MrPetovan/bug/fix-feed-reshare
authorMichael Vogel <icarus@dabo.de>
Fri, 15 Jun 2018 06:06:56 +0000 (08:06 +0200)
committerGitHub <noreply@github.com>
Fri, 15 Jun 2018 06:06:56 +0000 (08:06 +0200)
Fix feed blank reshare body

mod/share.php

index 7eb588112b90ecf2fe00fabcfaf02364abf71f17..8a40288853335c24969cdb366ee30d05183172cc 100644 (file)
@@ -15,7 +15,7 @@ function share_init(App $a) {
                'guid', 'created', 'plink', 'title'];
        $item = Item::selectFirst(local_user(), $fields, ['id' => $post_id]);
 
-       if (!DBM::is_result($item) || $item['private']) {
+       if (!DBM::is_result($item) || $item['private'] == 1) {
                killme();
        }