From 3fa3e78844f98e8732c0b708483d23cfaefb7161 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 13 Sep 2020 19:44:11 -0400 Subject: [PATCH] Normalize item like/dislike template variable name --- include/conversation.php | 4 ++-- src/Object/Post.php | 4 ++-- view/theme/quattro/templates/search_item.tpl | 4 ++-- view/theme/smoothly/templates/wall_thread.tpl | 4 ++-- view/theme/vier/templates/search_item.tpl | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 0c007851cd..d496e5bb7c 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -626,8 +626,8 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o 'star' => $star, 'drop' => $drop, 'vote' => $likebuttons, - 'like' => '', - 'dislike' => '', + 'like_html' => '', + 'dislike_html' => '', 'comment_html' => '', 'conv' => (($preview) ? '' : ['href'=> 'display/'.$item['guid'], 'title'=> DI::l10n()->t('View in context')]), 'previewing' => $previewing, diff --git a/src/Object/Post.php b/src/Object/Post.php index 70142e887f..c3b93b1a02 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -474,8 +474,8 @@ class Post 'filer' => $filer, 'drop' => $drop, 'vote' => $buttons, - 'like' => $responses['like']['output'], - 'dislike' => $responses['dislike']['output'], + 'like_html' => $responses['like']['output'], + 'dislike_html' => $responses['dislike']['output'], 'responses' => $responses, 'switchcomment' => DI::l10n()->t('Comment'), 'reply_label' => DI::l10n()->t('Reply to %s', $name_e), diff --git a/view/theme/quattro/templates/search_item.tpl b/view/theme/quattro/templates/search_item.tpl index e05e37621e..a7e755747e 100644 --- a/view/theme/quattro/templates/search_item.tpl +++ b/view/theme/quattro/templates/search_item.tpl @@ -82,8 +82,8 @@
- -
{{$item.dislike nofilter}}
+ +
{{$item.dislike_html nofilter}}
{{if $item.conv}}
{{$item.conv.title}} diff --git a/view/theme/smoothly/templates/wall_thread.tpl b/view/theme/smoothly/templates/wall_thread.tpl index 0cd52fcdea..c9f258f6fd 100644 --- a/view/theme/smoothly/templates/wall_thread.tpl +++ b/view/theme/smoothly/templates/wall_thread.tpl @@ -143,8 +143,8 @@
- -
{{$item.dislike nofilter}}
+ +
{{$item.dislike_html nofilter}}
{{if $item.threaded}} {{if $item.comment_html}} diff --git a/view/theme/vier/templates/search_item.tpl b/view/theme/vier/templates/search_item.tpl index 278beb0174..fd3a0a5369 100644 --- a/view/theme/vier/templates/search_item.tpl +++ b/view/theme/vier/templates/search_item.tpl @@ -89,7 +89,7 @@
- -
{{$item.dislike nofilter}}
+ +
{{$item.dislike_html nofilter}}