- // count dislikes
- $r = q( $baseq . "AND `item`.`verb` = 'http://purl.org/macgirvin/dfrn/1.0/dislike'",
- intval($conf['uid']),
- dbesc($args[0])
- );
- $dislikes = $r[0]['c'];
+ $dislikes = 0;
+ $strdislike = '';
+ if (!DI::pConfig()->get(local_user(), 'system', 'hide_dislike')) {
+ // count dislikes
+ $r = q( $baseq . "AND `item`.`verb` = 'http://purl.org/macgirvin/dfrn/1.0/dislike'",
+ intval($conf['uid']),
+ DBA::escape($args[0])
+ );
+ $dislikes = $r[0]['c'];
+ $strdislike = DI::l10n()->tt("%d person doesn't like this", "%d people don't like this", $dislikes);
+ }