Skip to content

Commit

Permalink
Merge pull request #9851 from MrPetovan/bug/fatal-errors
Browse files Browse the repository at this point in the history
Replace obsolete call to Item::selectFirstThreadForUser in Module\Item\Ignore
  • Loading branch information
annando committed Jan 22, 2021
2 parents 4be7fcf + 2343d7b commit 615e6f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Module/Item/Ignore.php
Expand Up @@ -25,7 +25,7 @@
use Friendica\Core\Session;
use Friendica\Core\System;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Network\HTTPException;

/**
Expand All @@ -50,7 +50,7 @@ public static function rawContent(array $parameters = [])
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();
}
Expand Down

0 comments on commit 615e6f2

Please sign in to comment.