]> git.mxchange.org Git - friendica.git/commitdiff
Replace obsolete call to Item::selectFirstThreadForUser in Module\Item\Ignore
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 22 Jan 2021 21:03:36 +0000 (16:03 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 22 Jan 2021 21:03:36 +0000 (16:03 -0500)
src/Module/Item/Ignore.php

index 65617f90f02f1e4f1c5811ea199f49b397185e12..1883faa90502d87ecaf65a18e22e0165e8b266d2 100644 (file)
@@ -25,7 +25,7 @@ use Friendica\BaseModule;
 use Friendica\Core\Session;
 use Friendica\Core\System;
 use Friendica\DI;
-use Friendica\Model\Item;
+use Friendica\Model\Post;
 use Friendica\Network\HTTPException;
 
 /**
@@ -50,7 +50,7 @@ class Ignore extends BaseModule
                        throw new HTTPException\BadRequestException();
                }
 
-               $thread = Item::selectFirstThreadForUser(local_user(), ['uid', 'ignored'], ['iid' => $message_id]);
+               $thread = Post::selectFirstThreadForUser(local_user(), ['uid', 'ignored'], ['iid' => $message_id]);
                if (!$dba->isResult($thread)) {
                        throw new HTTPException\BadRequestException();
                }