]> git.mxchange.org Git - friendica.git/commitdiff
Store tags for locally created posts
authorMichael <heluecht@pirati.ca>
Wed, 15 Apr 2020 19:46:47 +0000 (19:46 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 15 Apr 2020 19:46:47 +0000 (19:46 +0000)
mod/item.php

index bc6050646077f5967c1dff3ce35ff94f494392c6..5785954bce8ff7c394147936a465cb2292f64b1c 100644 (file)
@@ -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');