mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Update createdDate to the current timestamp when publishing new post
This commit is contained in:
parent
6cc2194b26
commit
be625c7822
@ -97,7 +97,7 @@ extension WriteFreelyModel {
|
||||
appearance: post.appearance,
|
||||
language: post.language,
|
||||
rtl: post.rtl,
|
||||
createdDate: post.createdDate
|
||||
createdDate: post.status == PostStatus.local.rawValue ? Date() : post.createdDate
|
||||
)
|
||||
|
||||
if let existingPostId = post.postId {
|
||||
|
Loading…
Reference in New Issue
Block a user