New post class in model classes

This commit is contained in:
Michael 2021-01-16 04:13:22 +00:00
parent 3ab4e20fe6
commit b0d1a295fe
9 changed files with 77 additions and 76 deletions

View file

@ -27,6 +27,7 @@ use Friendica\Core\Worker;
use Friendica\Database\Database;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\Post;
use Friendica\Model\Tag;
use Friendica\Util\DateTimeFormat;
@ -151,7 +152,7 @@ class Delayed
}
if (!empty($id) && (!empty($taglist) || !empty($attachments))) {
$feeditem = Item::selectFirst(['uri-id'], ['id' => $id]);
$feeditem = Post::selectFirst(['uri-id'], ['id' => $id]);
foreach ($taglist as $tag) {
Tag::store($feeditem['uri-id'], Tag::HASHTAG, $tag);