add permit_all_likes to tgroup_check

This commit is contained in:
Mike Macgirvin 2022-10-18 20:16:33 +11:00
parent b5dea507fe
commit 45e48f6e15

View file

@ -2859,6 +2859,10 @@ function tgroup_check($uid, $item) {
return true;
}
if (PConfig::Get($uid, 'system','permit_all_likes',true) && $item['verb'] === 'Like') {
return true;
}
$tag_result = false;
$terms = ((isset($item['term'])) ? get_terms_oftype($item['term'],TERM_HASHTAG) : false);
if ($terms) {