mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
Move (last) get_cats_and_terms to Content\Item::determineCategoriesTerms()
- Added incomplete test
This commit is contained in:
parent
ad67fd3aa8
commit
edf006905b
5 changed files with 102 additions and 76 deletions
|
@ -7,6 +7,7 @@ namespace Friendica\Object;
|
|||
use Friendica\BaseObject;
|
||||
use Friendica\Content\ContactSelector;
|
||||
use Friendica\Content\Feature;
|
||||
use Friendica\Content\Item as ContentItem;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
|
@ -324,7 +325,10 @@ class Post extends BaseObject
|
|||
|
||||
$body = Item::prepareBody($item, true);
|
||||
|
||||
list($categories, $folders) = get_cats_and_terms($item);
|
||||
/** @var ContentItem $contItem */
|
||||
$contItem = self::getClass(ContentItem::class);
|
||||
|
||||
list($categories, $folders) = $contItem->determineCategoriesTerms($item);
|
||||
|
||||
$body_e = $body;
|
||||
$text_e = strip_tags($body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue