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

@ -5,6 +5,7 @@ namespace Friendica\Module\Update;
use Friendica\Core\System;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Module\Conversation\Network as NetworkModule;
class Network extends NetworkModule
@ -23,7 +24,7 @@ class Network extends NetworkModule
if (!DI::pConfig()->get($profile_uid, 'system', 'no_auto_update') || ($_GET['force'] == 1)) {
if (!empty($_GET['item'])) {
$item = Item::selectFirst(['parent'], ['id' => $_GET['item']]);
$item = Post::selectFirst(['parent'], ['id' => $_GET['item']]);
$parent = $item['parent'] ?? 0;
} else {
$parent = 0;