summaryrefslogtreecommitdiff
path: root/Sora/Views/Post/Grid/PostGridView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-11 22:38:48 -0700
committerFuwn <[email protected]>2025-09-11 22:38:48 -0700
commit16682d6fac87a07ec81c54f375ac6a5cd621dea9 (patch)
tree57ea9f02dfd8db076ad98d0cbc06493ea54de7dd /Sora/Views/Post/Grid/PostGridView.swift
parentfeat: Development commit (diff)
downloadsora-testing-16682d6fac87a07ec81c54f375ac6a5cd621dea9.tar.xz
sora-testing-16682d6fac87a07ec81c54f375ac6a5cd621dea9.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/Grid/PostGridView.swift')
-rw-r--r--Sora/Views/Post/Grid/PostGridView.swift6
1 files changed, 4 insertions, 2 deletions
diff --git a/Sora/Views/Post/Grid/PostGridView.swift b/Sora/Views/Post/Grid/PostGridView.swift
index 025c3d2..5c071b8 100644
--- a/Sora/Views/Post/Grid/PostGridView.swift
+++ b/Sora/Views/Post/Grid/PostGridView.swift
@@ -253,11 +253,13 @@ struct PostGridView: View { // swiftlint:disable:this type_body_length
await performLocalSearch()
}
} else {
- let currentTags = localSearchText.components(separatedBy: .whitespaces).filter { !$0.isEmpty }
+ let currentTags = localSearchText.components(separatedBy: .whitespaces).filter { tag in
+ !tag.isEmpty
+ }
let hasPosts = !localPosts.isEmpty
let initialTags = initialTag.components(separatedBy: .whitespaces).filter { !$0.isEmpty }
let needsFetch = !hasPosts || currentTags != initialTags
-
+
if needsFetch {
currentLocalTask = Task(priority: .userInitiated) {
await fetchLocalPosts(