Merge pull request #799 from j-f1/block-reblog-dms

Prevent reblogging DMs
This commit is contained in:
Nathan Mattes 2022-12-21 20:21:53 +01:00 committed by GitHub
commit 65da752170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

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