From 2343d7bb73c46d26fb2188ef1eab1126e85ba24a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 22 Jan 2021 16:03:36 -0500 Subject: [PATCH] Replace obsolete call to Item::selectFirstThreadForUser in Module\Item\Ignore --- src/Module/Item/Ignore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Item/Ignore.php b/src/Module/Item/Ignore.php index 65617f90f..1883faa90 100644 --- a/src/Module/Item/Ignore.php +++ b/src/Module/Item/Ignore.php @@ -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(); }