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 },
label: { Label("status.action.delete", systemImage: "trash") })
}
} else if !viewModel.isRemote {
Section(viewModel.status.account.acct) {
Button {
routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .pub)
} label: {
Label("status.action.mention", systemImage: "at")
}
Button {
routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .direct)
} label: {
Label("status.action.message", systemImage: "tray.full")
} else {
if !viewModel.isRemote {
Section(viewModel.status.account.acct) {
Button {
routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .pub)
} label: {
Label("status.action.mention", systemImage: "at")
}
Button {
routerPath.presentedSheet = .mentionStatusEditor(account: viewModel.status.account, visibility: .direct)
} label: {
Label("status.action.message", systemImage: "tray.full")
}
}
}
Section {
Button(role: .destructive) {
routerPath.presentedSheet = .report(status: viewModel.status.reblogAsAsStatus ?? viewModel.status)