forked from shadowfacts/Tusker
Fix content warning not being removed by edit
This commit is contained in:
parent
f9a41fd4f3
commit
13ec3366d3
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue