aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-19 15:30:17 -0800
committerredmatrix <git@macgirvin.com>2016-01-19 15:30:17 -0800
commitd3bec0b2f9426492bf63e87e49e6793a7cb700da (patch)
treedad1dc1eb771bf7f76b3b39c121806016a1bbcca /include
parentc15e3de63759602bac87a57142a73db1166bc5ec (diff)
downloadvolse-hubzilla-d3bec0b2f9426492bf63e87e49e6793a7cb700da.tar.gz
volse-hubzilla-d3bec0b2f9426492bf63e87e49e6793a7cb700da.tar.bz2
volse-hubzilla-d3bec0b2f9426492bf63e87e49e6793a7cb700da.zip
honour poco_rating_enable in item_photo_menu
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 7070ac221..1ade8ed3a 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -942,7 +942,12 @@ function item_photo_menu($item){
$clean_url = normalise_link($item['author-link']);
}
- $ratings_url = z_root() . '/ratings/' . urlencode($item['author_xchan']);
+ $poco_rating = get_config('system','poco_rating_enable');
+ // if unset default to enabled
+ if($poco_rating === false)
+ $poco_rating = true;
+
+ $ratings_url = (($poco_rating) ? z_root() . '/ratings/' . urlencode($item['author_xchan']) : '');
$post_menu = Array(
t("View Source") => $vsrc_link,