aboutsummaryrefslogtreecommitdiffstats
path: root/mod
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 /mod
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 'mod')
-rw-r--r--mod/photos.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index d60029688..b2c5cd985 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -1064,6 +1064,7 @@ function photos_content(&$a) {
if($can_post || $a->data['perms']['post_comments']) {
$comments .= replace_macros($cmnt_tpl,array(
'$return_path' => '',
+ '$mode' => 'photos',
'$jsreload' => $return_url,
'$type' => 'wall-comment',
'$id' => $link_item['id'],
@@ -1131,6 +1132,7 @@ function photos_content(&$a) {
$comments .= replace_macros($template,array(
'$id' => $item['item_id'],
+ '$mode' => 'photos',
'$profile_url' => $profile_link,
'$name' => $name_e,
'$thumb' => $profile_avatar,