]> git.mxchange.org Git - friendica.git/blobdiff - mod/share.php
Merge pull request #6261 from annando/fix-magic
[friendica.git] / mod / share.php
index 8a40288853335c24969cdb366ee30d05183172cc..74de1967b44782542d7c081a654d59c90e159593 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 use Friendica\App;
-use Friendica\Database\DBM;
+use Friendica\Database\DBA;
 use Friendica\Model\Item;
 
 function share_init(App $a) {
@@ -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'] == 1) {
+       if (!DBA::isResult($item) || $item['private'] == 1) {
                killme();
        }