aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-23 17:46:20 -0700
committerzotlabs <mike@macgirvin.com>2017-08-23 17:46:20 -0700
commit3b68df1be6173cbcc50386efc0161ece2015112d (patch)
treee075614cc9faa7a3cf1f93cff8c91cf0da34e663 /Zotlabs/Lib
parent9518dc0e4ee40c9672e533afbb1a506c3a85c598 (diff)
downloadvolse-hubzilla-3b68df1be6173cbcc50386efc0161ece2015112d.tar.gz
volse-hubzilla-3b68df1be6173cbcc50386efc0161ece2015112d.tar.bz2
volse-hubzilla-3b68df1be6173cbcc50386efc0161ece2015112d.zip
several card enhancements
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ThreadItem.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index ad944203c..526169e1b 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -101,10 +101,13 @@ class ThreadItem {
if($item['author']['xchan_network'] === 'rss')
$shareable = true;
+
$mode = $conv->get_mode();
+ $edlink = (($item['item_type'] == ITEM_TYPE_CARD) ? 'card_edit' : 'editpost');
+
if(local_channel() && $observer['xchan_hash'] === $item['author_xchan'])
- $edpost = array(z_root()."/editpost/".$item['id'], t("Edit"));
+ $edpost = array(z_root() . '/' . $edlink . '/' . $item['id'], t('Edit'));
else
$edpost = false;