Compare commits
1 Commits
nprofile-q
...
nsfw-tag-c
| Author | SHA1 | Date | |
|---|---|---|---|
|
6076aaf738
|
@@ -31,7 +31,7 @@ enum FilterState : Int {
|
||||
|
||||
/// Simple filter to determine whether to show posts with #nsfw tags
|
||||
func nsfw_tag_filter(ev: NostrEvent) -> Bool {
|
||||
return ev.referenced_hashtags.first(where: { t in t.hashtag == "nsfw" }) == nil
|
||||
return ev.referenced_hashtags.first(where: { t in t.hashtag.caseInsensitiveCompare("nsfw") == .orderedSame }) == nil
|
||||
}
|
||||
|
||||
func get_repost_of_muted_user_filter(damus_state: DamusState) -> ((_ ev: NostrEvent) -> Bool) {
|
||||
|
||||
Reference in New Issue
Block a user