make sure mod/prep follows the poco_rating allow preference

This commit is contained in:
friendica 2015-01-15 17:50:24 -08:00
parent 6cd26c3590
commit 9c15844845

View File

@ -2,6 +2,15 @@
function prep_content(&$a) {
$poco_rating = get_config('system','poco_rating_enable');
// if unset default to enabled
if($poco_rating === false)
$poco_rating = true;
if(! $poco_rating)
return;
if(argc() > 1)
$hash = argv(1);