mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-24 10:08:41 +00:00
fix: filter reply
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -109,22 +109,23 @@ class ReplyHttp {
|
|||||||
.hasMatch(mainListReply.upTop.content.message)) {
|
.hasMatch(mainListReply.upTop.content.message)) {
|
||||||
mainListReply.clearUpTop();
|
mainListReply.clearUpTop();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// replies
|
// replies
|
||||||
if (mainListReply.replies.isNotEmpty) {
|
if (mainListReply.replies.isNotEmpty) {
|
||||||
mainListReply.replies.removeWhere((item) {
|
mainListReply.replies.removeWhere((item) {
|
||||||
bool hasMatch = RegExp(banWordForReply, caseSensitive: false)
|
bool hasMatch = RegExp(banWordForReply, caseSensitive: false)
|
||||||
.hasMatch(item.content.message);
|
.hasMatch(item.content.message);
|
||||||
// remove subreplies
|
// remove subreplies
|
||||||
if (hasMatch.not) {
|
if (hasMatch.not) {
|
||||||
if (item.replies.isNotEmpty) {
|
if (item.replies.isNotEmpty) {
|
||||||
item.replies.removeWhere((item) =>
|
item.replies.removeWhere((item) =>
|
||||||
RegExp(banWordForReply, caseSensitive: false)
|
RegExp(banWordForReply, caseSensitive: false)
|
||||||
.hasMatch(item.content.message));
|
.hasMatch(item.content.message));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
return hasMatch;
|
||||||
return hasMatch;
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
return LoadingState.success(mainListReply);
|
return LoadingState.success(mainListReply);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ class VideoHttp {
|
|||||||
'bili-http-engine': 'cronet',
|
'bili-http-engine': 'cronet',
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
Utils.showCopyTextDialog(jsonEncode(res.data));
|
|
||||||
if (res.data['code'] == 0) {
|
if (res.data['code'] == 0) {
|
||||||
List<RecVideoItemAppModel> list = [];
|
List<RecVideoItemAppModel> list = [];
|
||||||
List<int> blackMidsList = GStorage.blackMidsList;
|
List<int> blackMidsList = GStorage.blackMidsList;
|
||||||
|
|||||||
Reference in New Issue
Block a user