From c6d6c01fb619b37fa47f19966421a6636155180c Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 16 Sep 2013 22:40:53 -0700 Subject: 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 --- mod/photos.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod/photos.php') 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, -- cgit v1.2.3