aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-06-12 11:57:13 +0000
committerMario <mario@mariovavti.com>2025-06-12 11:57:13 +0000
commitad7871270c415772a8a058cf65de81eed8886b43 (patch)
tree4ae40d38bb3127dfe0c78335c32bd6fb5760582e
parent66512f4e51f689eafbc632ef9a32e80fd26c9ef8 (diff)
downloadvolse-hubzilla-ad7871270c415772a8a058cf65de81eed8886b43.tar.gz
volse-hubzilla-ad7871270c415772a8a058cf65de81eed8886b43.tar.bz2
volse-hubzilla-ad7871270c415772a8a058cf65de81eed8886b43.zip
add EmojiReact to the countable comment verbs
-rw-r--r--include/conversation.php2
-rw-r--r--include/items.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 051670d7b..07e4df088 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1434,7 +1434,7 @@ function get_responses($response_verbs, $item) {
return $ret;
}
-function get_response_button_text($v, $count = 0, $top_level) {
+function get_response_button_text($v, $count = 0, $top_level = 0) {
switch($v) {
case 'like':
return ['label' => tt('Like','Likes',$count,'noun'), 'icon' => 'hand-thumbs-up', 'class' => 'like', 'action' => 'dolike'];
diff --git a/include/items.php b/include/items.php
index 021d743a5..e4aff1172 100644
--- a/include/items.php
+++ b/include/items.php
@@ -5523,7 +5523,7 @@ function item_reaction_sql(string $ids, string $permission_sql = '', string $joi
$thread_allow = ((local_channel()) ? PConfig::Get(local_channel(), 'system', 'thread_allow', true) : Config::Get('system', 'thread_allow', true));
if ($thread_allow) {
- $verbs['comment'] = ['Create', 'Update'];
+ $verbs['comment'] = ['Create', 'Update', 'EmojiReact'];
}
$cte = '';