fix: collapsible cloud mirrors, tag panel sanitization, and clean announcement HTML (v2.3.1)

This commit is contained in:
2026-09-04 12:26:15 +03:00
parent 639bfc50af
commit 87e126ec4d
13 changed files with 204 additions and 86 deletions
+20
View File
@@ -60,6 +60,26 @@ class Post {
return null;
}
List<String> get cleanTags {
return tags.where((tag) {
final t = tag.trim();
if (t.isEmpty) return false;
if (t == 'cloud_mirror') return false;
if (t.startsWith('{') && t.endsWith('}')) return false;
if (t.contains('"url"') || t.contains('"service"')) return false;
if (t.startsWith('http://') || t.startsWith('https://')) return false;
if (t.contains('mega.nz') ||
t.contains('drive.google.com') ||
t.contains('dropbox.com') ||
t.contains('pixeldrain.com') ||
t.contains('catbox.moe') ||
t.contains('mediafire.com')) {
return false;
}
return true;
}).toList(growable: false);
}
Post copyWith({
String? id,
String? providerId,