diff --git a/app/Plugins/Comment/helpers.php b/app/Plugins/Comment/helpers.php index 38806c6bc..9a67f62f6 100644 --- a/app/Plugins/Comment/helpers.php +++ b/app/Plugins/Comment/helpers.php @@ -34,13 +34,7 @@ function get_topic_comment_page(string|int $comment_id): int } else { $CommentOrderBy = 'asc'; } - if (! request()->input('comment_sort')) { - $comment_sort = $CommentOrderBy; - } elseif (request()->input('comment_sort') === 'asc' || request()->input('comment_sort') === 'desc') { - $comment_sort = request()->input('comment_sort'); - } else { - $comment_sort = $CommentOrderBy; - } + $comment_sort = $CommentOrderBy; for ($i = 0; $i < $lastPage; ++$i) { $page = $i + 1; $data = TopicComment::query() diff --git a/app/Plugins/Comment/resources/views/ShortCode/comment.blade.php b/app/Plugins/Comment/resources/views/ShortCode/comment.blade.php index 4e796cdbc..0bd1f2a85 100644 --- a/app/Plugins/Comment/resources/views/ShortCode/comment.blade.php +++ b/app/Plugins/Comment/resources/views/ShortCode/comment.blade.php @@ -27,7 +27,7 @@ {{-- 楼层信息--}}
- 访问所在帖子 + 查看评论
diff --git a/app/Plugins/User/resources/views/home/comment.blade.php b/app/Plugins/User/resources/views/home/comment.blade.php index b45874a5c..32d25d847 100644 --- a/app/Plugins/User/resources/views/home/comment.blade.php +++ b/app/Plugins/User/resources/views/home/comment.blade.php @@ -31,7 +31,7 @@ {{-- 楼层信息--}}
- 访问所在帖子 + 查看评论