Fix content warning not being removed by edit

This commit is contained in:
Shadowfacts 2023-05-11 14:39:49 -04:00
parent f9a41fd4f3
commit 13ec3366d3
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class PostService: ObservableObject {
}
func post() async throws {
guard draft.hasContent else {
guard draft.hasContent || draft.editedStatusID != nil else {
return
}
@ -35,8 +35,8 @@ class PostService: ObservableObject {
let uploadedAttachments = try await uploadAttachments()
let contentWarning = draft.contentWarningEnabled ? draft.contentWarning : nil
let sensitive = contentWarning != nil
let contentWarning = draft.contentWarningEnabled ? draft.contentWarning : ""
let sensitive = !contentWarning.isEmpty
let request: Request<Status>