Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb1f463

Browse files
committed
回复引用楼层问题处理
1 parent 580829d commit fb1f463

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

static/js/comment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@
230230
user.uid = $pageComment.data('uid'),
231231
user.avatar = $pageComment.data('avatar'),
232232
comment.cmt_time = SG.timeago(comment.ctime);
233+
if (comment.reply_floor > 0) {
234+
comment.content = content.substr(2);
235+
}
233236
comment.reply_floor = 0;
234237
comment.content = parseCmtContent(comment.content);
235238

0 commit comments

Comments
 (0)