aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-05-06 14:58:27 +0000
committerMario <mario@mariovavti.com>2022-05-06 14:58:27 +0000
commit04eb20ac35ab94c79de296723c5b921bb110a0ce (patch)
tree44a0ff3a7b76e9c0f4373f3096d613e839feadd6 /Zotlabs/Lib/ThreadItem.php
parentf299391aa1592590e63d493540f50ba0d7891fb0 (diff)
downloadvolse-hubzilla-04eb20ac35ab94c79de296723c5b921bb110a0ce.tar.gz
volse-hubzilla-04eb20ac35ab94c79de296723c5b921bb110a0ce.tar.bz2
volse-hubzilla-04eb20ac35ab94c79de296723c5b921bb110a0ce.zip
some cleanup after moving articles and cards to addons
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 8d20935a1..e43264c0d 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -162,24 +162,11 @@ class ThreadItem {
$mode = $conv->get_mode();
- switch($item['item_type']) {
- case ITEM_TYPE_CARD:
- $edlink = 'card_edit';
- break;
- case ITEM_TYPE_ARTICLE:
- $edlink = 'article_edit';
- break;
- default:
- $edlink = 'editpost';
- break;
- }
-
if(local_channel() && $observer['xchan_hash'] === $item['author_xchan'])
- $edpost = array(z_root() . '/' . $edlink . '/' . $item['id'], t('Edit'));
+ $edpost = array(z_root() . '/editpost/' . $item['id'], t('Edit'));
else
$edpost = false;
-
if($observer && $observer['xchan_hash']
&& ($observer['xchan_hash'] == $this->get_data_value('author_xchan')
|| $observer['xchan_hash'] == $this->get_data_value('owner_xchan')