sforkowany z mirror/friendica
Replace obsolete call to Item::selectFirstThreadForUser in Module\Item\Ignore
rodzic
4be7fcf14c
commit
2343d7bb73
|
@ -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();
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue