diff options
| author | Fuwn <[email protected]> | 2025-02-21 23:30:01 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-21 23:30:01 -0800 |
| commit | c82c394a2fa8513a83238fb4d0ccdd8567b316d5 (patch) | |
| tree | 7d392440848a48b5d77edb027f248d8a1e1fa153 /Sora/Views/Post/PostView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-c82c394a2fa8513a83238fb4d0ccdd8567b316d5.tar.xz sora-testing-c82c394a2fa8513a83238fb4d0ccdd8567b316d5.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Post/PostView.swift')
| -rw-r--r-- | Sora/Views/Post/PostView.swift | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Sora/Views/Post/PostView.swift b/Sora/Views/Post/PostView.swift index 7635641..ce46152 100644 --- a/Sora/Views/Post/PostView.swift +++ b/Sora/Views/Post/PostView.swift @@ -8,11 +8,11 @@ struct PostView: View { private var thumbnailURL: URL? { switch settings.thumbnailType { case .preview: - return post.previewURL + post.previewURL case .sample: - return post.sampleURL + post.sampleURL case .original: - return post.fileURL + post.fileURL } } @@ -23,7 +23,7 @@ struct PostView: View { .resizable() .aspectRatio(contentMode: .fit) .onScrollVisibilityChange { visible in - if post == posts.last && !manager.endOfData && visible { + if post == posts.last, !manager.endOfData, visible { Task { manager.loadNextPage() } |