aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-05-06 19:10:28 +0000
committerMario <mario@mariovavti.com>2022-05-06 19:10:28 +0000
commit2ca80118bf4fd4c0455f45b2310d040739ad8f4c (patch)
tree19bdded8e34c9e4b84b6b19e7ef2419a61d9790e /Zotlabs/Module
parent04eb20ac35ab94c79de296723c5b921bb110a0ce (diff)
downloadvolse-hubzilla-2ca80118bf4fd4c0455f45b2310d040739ad8f4c.tar.gz
volse-hubzilla-2ca80118bf4fd4c0455f45b2310d040739ad8f4c.tar.bz2
volse-hubzilla-2ca80118bf4fd4c0455f45b2310d040739ad8f4c.zip
more cleanup
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Item.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 7bf8b21d5..e1ba2b2f0 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -743,6 +743,8 @@ class Item extends Controller {
$webpage = $parent_item['item_type'];
}
+
+
if ((!$allow_empty) && (!strlen($body))) {
if ($preview)
killme();
@@ -807,7 +809,6 @@ class Item extends Controller {
$post_tags = [];
-
if ($mimetype === 'text/bbcode') {
require_once('include/text.php');
@@ -919,15 +920,7 @@ class Item extends Controller {
$cats = explode(',', $categories);
foreach ($cats as $cat) {
- if ($webpage == ITEM_TYPE_CARD) {
- $catlink = z_root() . '/cards/' . $channel['channel_address'] . '?f=&cat=' . urlencode(trim($cat));
- }
- elseif ($webpage == ITEM_TYPE_ARTICLE) {
- $catlink = z_root() . '/articles/' . $channel['channel_address'] . '?f=&cat=' . urlencode(trim($cat));
- }
- else {
- $catlink = $owner_xchan['xchan_url'] . '?f=&cat=' . urlencode(trim($cat));
- }
+ $catlink = $owner_xchan['xchan_url'] . '?f=&cat=' . urlencode(trim($cat));
$post_tags[] = [
'uid' => $profile_uid,