diff options
author | Mario <mario@mariovavti.com> | 2022-05-06 19:10:28 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-05-06 19:10:28 +0000 |
commit | 2ca80118bf4fd4c0455f45b2310d040739ad8f4c (patch) | |
tree | 19bdded8e34c9e4b84b6b19e7ef2419a61d9790e | |
parent | 04eb20ac35ab94c79de296723c5b921bb110a0ce (diff) | |
download | volse-hubzilla-2ca80118bf4fd4c0455f45b2310d040739ad8f4c.tar.gz volse-hubzilla-2ca80118bf4fd4c0455f45b2310d040739ad8f4c.tar.bz2 volse-hubzilla-2ca80118bf4fd4c0455f45b2310d040739ad8f4c.zip |
more cleanup
-rw-r--r-- | Zotlabs/Lib/ThreadStream.php | 4 | ||||
-rw-r--r-- | Zotlabs/Module/Item.php | 13 | ||||
-rw-r--r-- | include/conversation.php | 2 |
3 files changed, 6 insertions, 13 deletions
diff --git a/Zotlabs/Lib/ThreadStream.php b/Zotlabs/Lib/ThreadStream.php index 7fe8fcc2e..2ad24a690 100644 --- a/Zotlabs/Lib/ThreadStream.php +++ b/Zotlabs/Lib/ThreadStream.php @@ -69,12 +69,12 @@ class ThreadStream { case 'cards': $this->profile_owner = \App::$profile['profile_uid']; $this->writable = perm_is_allowed($this->profile_owner,$ob_hash,'post_comments'); - $this->reload = $_SESSION['return_url']; + //$this->reload = $_SESSION['return_url']; break; case 'articles': $this->profile_owner = \App::$profile['profile_uid']; $this->writable = perm_is_allowed($this->profile_owner,$ob_hash,'post_comments'); - $this->reload = $_SESSION['return_url']; + //$this->reload = $_SESSION['return_url']; break; case 'display': // in this mode we set profile_owner after initialisation (from conversation()) and then 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, diff --git a/include/conversation.php b/include/conversation.php index c0238b8ae..1d6295df7 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -773,7 +773,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa $conv_link_module = 'hq'; } - $conv_link = ((in_array($item['item_type'],[ ITEM_TYPE_CARD, ITEM_TYPE_ARTICLE] )) ? $item['plink'] : z_root() . '/' . $conv_link_module . '/' . gen_link_id($conv_link_mid)); + $conv_link = z_root() . '/' . $conv_link_module . '/' . gen_link_id($conv_link_mid); $contact = []; |