From c82c394a2fa8513a83238fb4d0ccdd8567b316d5 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 21 Feb 2025 23:30:01 -0800 Subject: feat: Development commit --- Sora/Views/Post/PostView.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Sora/Views/Post/PostView.swift') 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() } -- cgit v1.2.3