diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php
index 2843831d..94337db8 100644
--- a/app/Http/Controllers/AdminController.php
+++ b/app/Http/Controllers/AdminController.php
@@ -313,8 +313,6 @@ class AdminController extends Controller
$form->text('texture_name_regexp')->hint()->placeholder();
$form->textarea('content_policy')->rows(3)->description();
-
- $form->textarea('comment_script')->rows(6)->description();
})->handle(function () {
Option::set('site_name_'.config('app.locale'), request('site_name'));
Option::set('site_description_'.config('app.locale'), request('site_description'));
diff --git a/app/Http/Controllers/SkinlibController.php b/app/Http/Controllers/SkinlibController.php
index 10ee6d3c..017e48f4 100644
--- a/app/Http/Controllers/SkinlibController.php
+++ b/app/Http/Controllers/SkinlibController.php
@@ -143,19 +143,9 @@ class SkinlibController extends Controller
$badges = $filter->apply('user_badges', $badges, [$uploader]);
}
- $commentScript = get_string_replaced(
- option('comment_script'),
- [
- '{tid}' => $texture->tid,
- '{name}' => $texture->name,
- '{url}' => request()->url(),
- ]
- );
-
$grid = [
'layout' => [
['md-8', 'md-4'],
- ['md-12'],
],
'widgets' => [
[
@@ -165,16 +155,12 @@ class SkinlibController extends Controller
'skinlib.widgets.show.operations',
],
],
- [
- ['skinlib.widgets.show.comment'],
- ],
],
];
$grid = $filter->apply('grid:skinlib.show', $grid);
return view('skinlib.show')
->with('texture', $texture)
- ->with('comment_script', $commentScript)
->with('grid', $grid)
->with('extra', [
'download' => option('allow_downloading_texture'),
diff --git a/config/options.php b/config/options.php
index a5d98c6f..028b3683 100644
--- a/config/options.php
+++ b/config/options.php
@@ -17,7 +17,6 @@ return [
'custom_player_name_regexp' => '',
'player_name_length_min' => '3',
'player_name_length_max' => '16',
- 'comment_script' => '',
'user_initial_score' => '1000',
'sign_gap_time' => '24',
'sign_score' => '10,100',
diff --git a/resources/lang/en/options.yml b/resources/lang/en/options.yml
index f40716f3..e1bc445b 100644
--- a/resources/lang/en/options.yml
+++ b/resources/lang/en/options.yml
@@ -143,9 +143,6 @@ general:
content_policy:
title: Content Policy
description: Display content policy at texture uploading page, supporting Markdown. To edit a specific language's corresponding content policy, please switch to that language and submit your edit.
- comment_script:
- title: Comment Script
- description: Placeholder is available, {tid} will be replaced with texture id, {name} will be replaced with texture name, {url} will be replaced with current URL.
announ:
title: Announcement
diff --git a/resources/misc/changelogs/en/5.0.0.md b/resources/misc/changelogs/en/5.0.0.md
index 24b41ec4..4e0302e8 100644
--- a/resources/misc/changelogs/en/5.0.0.md
+++ b/resources/misc/changelogs/en/5.0.0.md
@@ -54,6 +54,7 @@
- Removed Element UI.
- Removed restriction of texture name and nickname.
- Removed settings of "Method of Retrieving IP".
+- Removed "3rd-party comment", and please install separated plugin if you need it.
## Internal Changes
diff --git a/resources/misc/changelogs/zh_CN/5.0.0.md b/resources/misc/changelogs/zh_CN/5.0.0.md
index 9da4e279..5046ab13 100644
--- a/resources/misc/changelogs/zh_CN/5.0.0.md
+++ b/resources/misc/changelogs/zh_CN/5.0.0.md
@@ -54,6 +54,7 @@
- 移除 Element UI
- 移除对材质名和用户昵称的要求
- 移除「IP 获取方法」的设置
+- 移除「第三方评论」功能,如有需要请安装独立插件
## 内部更改
diff --git a/resources/views/skinlib/widgets/show/comment.twig b/resources/views/skinlib/widgets/show/comment.twig
deleted file mode 100644
index 17834de7..00000000
--- a/resources/views/skinlib/widgets/show/comment.twig
+++ /dev/null
@@ -1,12 +0,0 @@
-{% if comment_script %}
-