opt: filter reply

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-13 19:27:40 +08:00
parent a395055bdc
commit e02f891449
6 changed files with 18 additions and 5 deletions

View File

@@ -27,6 +27,7 @@ class VideoReplyController extends ReplyController {
next: cursor?.next ?? $fixnum.Int64(0),
mode: mode,
),
banWordForReply: banWordForReply,
)
: ReplyHttp.replyList(
isLogin: isLogin,
@@ -35,5 +36,6 @@ class VideoReplyController extends ReplyController {
type: ReplyType.video.index,
sort: sortType.index,
page: currentPage,
banWordForReply: banWordForReply,
);
}

View File

@@ -45,6 +45,8 @@ class VideoReplyReplyController extends CommonController
late final horizontalPreview = GStorage.horizontalPreview;
late final banWordForReply = GStorage.banWordForReply;
@override
void onInit() {
super.onInit();
@@ -186,6 +188,7 @@ class VideoReplyReplyController extends CommonController
next: cursor?.next,
mode: mode.value,
),
banWordForReply: banWordForReply,
)
: GlobalData().grpcReply
? ReplyHttp.replyReplyListGrpc(
@@ -197,12 +200,14 @@ class VideoReplyReplyController extends CommonController
next: cursor?.next,
mode: mode.value,
),
banWordForReply: banWordForReply,
)
: ReplyHttp.replyReplyList(
oid: oid!,
root: rpid!,
pageNum: currentPage,
type: replyType.index,
banWordForReply: banWordForReply,
);
queryBySort() {