Skip to content

Commit

Permalink
Fix an issue with fixLocalMediaURLs not being called
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Apr 24, 2024
1 parent 893bb0a commit dda8648
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import Foundation

extension AbstractPost {
/// If a post is in the failed state it can contain references to local files.
/// When updating the app through the App Store the local paths can change.
/// This will fix any outdated local path with the correct one.
///
/// When updating the app through the App Store or installing a new version
/// of the app from Xcode, the local paths can change. This will fix any
/// outdated local path with the correct one.
func fixLocalMediaURLs() {
guard isFailed,
var content = self.content else {
return
}
guard var content = self.content else { return }

media.forEach { media in
guard !media.hasRemote else {
Expand Down

0 comments on commit dda8648

Please sign in to comment.