summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-22 11:07:36 -0800
committerFuwn <[email protected]>2025-02-22 11:07:36 -0800
commitd78a4f116100170e771ff7ad9dd6c691626ab687 (patch)
tree978dba74562b023e47da81039d9843d24663640f /Sora/Views/Post/Grid/PostGridView.swift
parentfeat: Development commit (diff)
downloadsora-testing-d78a4f116100170e771ff7ad9dd6c691626ab687.tar.xz
sora-testing-d78a4f116100170e771ff7ad9dd6c691626ab687.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift4
1 files changed, 3 insertions, 1 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 9738a15..faed038 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -10,7 +10,9 @@ struct PostGridView: View {
var filteredPosts: [BooruPost] {
(settings.showNSFWPosts
- ? manager.posts : manager.posts.filter { $0.rating == "s" || $0.rating == "q" })
+ ? manager.posts
+ : manager.posts
+ .filter { $0.rating == .safe || $0.rating == .questionable })
.sorted { $0.id > $1.id }
}