[feature] subcomment expansion; and fixed blocking #114
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
添加了一个在奖杯TIPS和游戏评论页面展开隐藏的子评论的功能。
游戏评论 测试页面 1、奖杯TIPS 测试页面 1:比较新的游戏所有的子评论都是隐藏的。
游戏评论 测试页面 2、奖杯TIPS 测试页面 2:稍微老一点的游戏,只有日期比较新的子评论是隐藏的。
更老的游戏根本没有子评论功能,无须测试。
这功能逻辑比我预想的要复杂,有两点原因:P9的载入子评论的代码一次只能点一个,一次点多个也只会载入一个,而且会串,载入出来的子评论可能不在正确的位置;用的IntersectionObserver实现lazy-loading减轻服务器负担,会触发很多重复的事件。
另外修复了下黑名单(其实修了有一段时间了但我当时忘记提PR了)。