mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 01:35:12 +00:00
add permit_all_likes to tgroup_check
This commit is contained in:
parent
b5dea507fe
commit
45e48f6e15
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue