Skip to content

Commit

Permalink
Fix pinned saving
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed Mar 21, 2024
1 parent 3abcfe9 commit 78f863a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Planet/Views/My/MyArticleItemView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ struct MyArticleItemView: View {
throw PlanetError.InternalError
}
self.article.pinned = flag ? Date() : nil
try article.save()
try self.article.save()
try self.article.savePublic()
planet.updated = Date()
planet.articles = planet.articles.sorted(by: { MyArticleModel.reorder(a: $0, b: $1) })
try planet.save()
Expand Down
2 changes: 1 addition & 1 deletion Planet/versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 1919
CURRENT_PROJECT_VERSION = 1920

0 comments on commit 78f863a

Please sign in to comment.