mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:10:11 +00:00
New post class in model classes
This commit is contained in:
parent
3ab4e20fe6
commit
b0d1a295fe
9 changed files with 77 additions and 76 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue