mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Do not default to replying to an unlisted post with a public post
Fixes #242 Replies' privacy scope should not be higher than original post
This commit is contained in:
parent
a0978d3a0a
commit
82f844d83a
@ -162,9 +162,13 @@ public final class ComposeContentViewModel: NSObject, ObservableObject {
|
||||
if case .reply(let record) = destination {
|
||||
let repliedStatusVisibility = record.entity.visibility
|
||||
switch repliedStatusVisibility {
|
||||
case .public, .unlisted:
|
||||
case .public:
|
||||
// keep default
|
||||
break
|
||||
case .unlisted:
|
||||
if visibility == .public {
|
||||
visibility = .unlisted
|
||||
}
|
||||
case .private:
|
||||
visibility = .private
|
||||
case .direct:
|
||||
|
Loading…
x
Reference in New Issue
Block a user