From 3ff607deeeeea5706ad6ff18176e3c106a7e1dc1 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 15 Apr 2020 19:46:47 +0000 Subject: [PATCH] Store tags for locally created posts --- mod/item.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/item.php b/mod/item.php index bc60506460..5785954bce 100644 --- a/mod/item.php +++ b/mod/item.php @@ -46,6 +46,7 @@ use Friendica\Model\FileTag; use Friendica\Model\Item; use Friendica\Model\Notify\Type; use Friendica\Model\Photo; +use Friendica\Model\Tag; use Friendica\Model\Term; use Friendica\Network\HTTPException; use Friendica\Object\EMail\ItemCCEMail; @@ -750,6 +751,8 @@ function item_post(App $a) { throw new HTTPException\InternalServerErrorException(DI::l10n()->t('Item couldn\'t be fetched.')); } + Tag::storeFromBody($datarray['uri-id'], $datarray['body']); + // update filetags in pconfig FileTag::updatePconfig($uid, $categories_old, $categories_new, 'category');