aboutsummaryrefslogtreecommitdiffstats
path: root/include/ItemObject.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-16 22:40:53 -0700
committerfriendica <info@friendica.com>2013-09-16 22:40:53 -0700
commitc6d6c01fb619b37fa47f19966421a6636155180c (patch)
tree9148ec533df02513857832bf15cc595b8fdfb717 /include/ItemObject.php
parent1c5d56eedcee971bc52b06b4aae3def672c32e04 (diff)
downloadvolse-hubzilla-c6d6c01fb619b37fa47f19966421a6636155180c.tar.gz
volse-hubzilla-c6d6c01fb619b37fa47f19966421a6636155180c.tar.bz2
volse-hubzilla-c6d6c01fb619b37fa47f19966421a6636155180c.zip
use prepare_body in api calls to properly render content, add 'mode' to conversation templates so that themes can use the module context to suppress or show comments as desired
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r--include/ItemObject.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php
index 22b191e79..0256160e9 100644
--- a/include/ItemObject.php
+++ b/include/ItemObject.php
@@ -88,6 +88,8 @@ class Item extends BaseObject {
: false);
$shareable = ((($conv->get_profile_owner() == local_user()) && ($item['item_private'] != 1)) ? true : false);
+ $mode = $conv->get_mode();
+
if(local_user() && $observer['xchan_hash'] === $item['author_xchan'])
$edpost = array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit"));
else
@@ -183,7 +185,7 @@ class Item extends BaseObject {
$tmp_item = array(
'template' => $this->get_template(),
-
+ 'mode' => $mode,
'type' => implode("",array_slice(explode("/",$item['verb']),-1)),
'tags' => array(),
'body' => $body,