Censor unclebobmartin from damus

Limits the size of posts viewable within damus to 32,000 bytes. It's
still probably too big, but let's have some sane limit so uncle's named
bob can't break your app just because they can.

Changelog-Fixed: Limit post sizes to max 32,000 as an upper bound sanity limit.
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-08-05 12:20:48 -07:00
parent 5c62a06618
commit 97bca010f6
6 changed files with 23 additions and 3 deletions

View File

@@ -68,6 +68,10 @@ class ProfileModel: ObservableObject {
}
func add_event(_ ev: NostrEvent) {
guard ev.should_show_event else {
return
}
if seen_event.contains(ev.id) {
return
}