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

@ -31,6 +31,7 @@ use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Network\HTTPException;
use Friendica\Util\Strings;
@ -314,7 +315,7 @@ class Acl extends BaseModule
if ($conv_id) {
// In multi threaded posts the conv_id is not the parent of the whole thread
$parent_item = Item::selectFirst(['parent'], ['id' => $conv_id]);
$parent_item = Post::selectFirst(['parent'], ['id' => $conv_id]);
if (DBA::isResult($parent_item)) {
$conv_id = $parent_item['parent'];
}