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