From: Michael Date: Wed, 15 Apr 2020 19:46:47 +0000 (+0000) Subject: Store tags for locally created posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ff607deeeeea5706ad6ff18176e3c106a7e1dc1;p=friendica.git Store tags for locally created posts --- 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');