Ignore the report button on my post (#856)

Co-authored-by: Yusuke Arakawa <nekolaboratory@users.noreply.github.com>
This commit is contained in:
Yusuke Arakawa 2023-02-15 14:35:11 +09:00 committed by GitHub
parent fc240ce2ef
commit 1b47419458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 12 deletions

View File

@ -119,20 +119,21 @@ struct StatusRowContextMenu: View {
action: { viewModel.showDeleteAlert = true }, action: { viewModel.showDeleteAlert = true },
label: { Label("status.action.delete", systemImage: "trash") }) label: { Label("status.action.delete", systemImage: "trash") })
} }
} else if !viewModel.isRemote { } else {
Section(viewModel.status.account.acct) { if !viewModel.isRemote {
Button { Section(viewModel.status.account.acct) {
routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .pub) Button {
} label: { routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .pub)
Label("status.action.mention", systemImage: "at") } label: {
} Label("status.action.mention", systemImage: "at")
Button { }
routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .direct) Button {
} label: { routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .direct)
Label("status.action.message", systemImage: "tray.full") } label: {
Label("status.action.message", systemImage: "tray.full")
}
} }
} }
Section { Section {
Button(role: .destructive) { Button(role: .destructive) {
routerPath.presentedSheet = .report(status: viewModel.status.reblogAsAsStatus ?? viewModel.status) routerPath.presentedSheet = .report(status: viewModel.status.reblogAsAsStatus ?? viewModel.status)