New post class in the rest of the classes

This commit is contained in:
Michael 2021-01-16 04:16:09 +00:00
parent 3ab4e20fe6
commit 2fa692bcce
15 changed files with 33 additions and 20 deletions

View file

@ -17,6 +17,7 @@ use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Group;
use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Model\Profile;
use Friendica\Model\User;
use Friendica\Module\Contact as ModuleContact;
@ -215,7 +216,7 @@ class Network extends BaseModule
return;
}
$unseen = Item::exists($condition);
$unseen = Post::exists($condition);
if ($unseen) {
/// @todo handle huge "unseen" updates in the background to avoid timeout errors