Compare commits
2 Commits
7763d08816
...
669404d6f8
Author | SHA1 | Date |
---|---|---|
Shadowfacts | 669404d6f8 | |
Shadowfacts | 2e21742264 |
|
@ -177,6 +177,7 @@ extension MastodonController {
|
|||
var acctsToMention = [String]()
|
||||
|
||||
var visibility = inReplyToID != nil ? Preferences.shared.defaultReplyVisibility.resolved : Preferences.shared.defaultPostVisibility
|
||||
var localOnly = false
|
||||
var contentWarning = ""
|
||||
|
||||
if let inReplyToID = inReplyToID,
|
||||
|
@ -184,6 +185,7 @@ extension MastodonController {
|
|||
acctsToMention.append(inReplyTo.account.acct)
|
||||
acctsToMention.append(contentsOf: inReplyTo.mentions.map(\.acct))
|
||||
visibility = min(visibility, inReplyTo.visibility)
|
||||
localOnly = instanceFeatures.localOnlyPosts && inReplyTo.localOnly
|
||||
|
||||
if !inReplyTo.spoilerText.isEmpty {
|
||||
switch Preferences.shared.contentWarningCopyMode {
|
||||
|
@ -213,6 +215,7 @@ extension MastodonController {
|
|||
draft.text = acctsToMention.map { "@\($0) " }.joined()
|
||||
draft.initialText = draft.text
|
||||
draft.visibility = visibility
|
||||
draft.localOnly = localOnly
|
||||
draft.contentWarning = contentWarning
|
||||
draft.contentWarningEnabled = !contentWarning.isEmpty
|
||||
|
||||
|
|
|
@ -231,6 +231,7 @@ struct ComposeView: View {
|
|||
} label: {
|
||||
Text("Post")
|
||||
}
|
||||
.keyboardShortcut(.return, modifiers: .command)
|
||||
.disabled(!postButtonEnabled)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue