Prevent reblogging DMs

This commit is contained in:
Jed Fox 2022-12-20 16:07:03 -05:00
parent 5986c078dc
commit 2f553c1648
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 2 additions and 4 deletions

View File

@ -160,13 +160,11 @@ extension StatusView {
$isMyself
)
.map { visibility, isMyself in
if isMyself {
return true
}
switch visibility {
case .public, .unlisted:
return true
case .private where isMyself:
return true
case .private, .direct, ._other:
return false
}