2
2
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:
shannon 2025-01-27 16:32:41 -05:00
parent a0978d3a0a
commit 82f844d83a

View File

@ -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: