diff options
| author | 2025-07-28 14:38:31 +0200 | |
|---|---|---|
| committer | 2025-07-28 14:38:31 +0200 | |
| commit | 30cd1cd9ebd000399f7e77573b948008a2a356ac (patch) | |
| tree | 9077e0a29c56434a869c0ebf10de13c57a03b361 /web/source/settings | |
| parent | [chore] bump dependencies (#4339) (diff) | |
| download | gotosocial-30cd1cd9ebd000399f7e77573b948008a2a356ac.tar.xz | |
[chore] Only display report comment forwarding notice when reporting account is local (#4344)
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
# Description
> If this is a code change, please include a summary of what you've coded, and link to the issue(s) it closes/implements.
>
> If this is a documentation change, please briefly describe what you've changed and why.
This pull request implements xyz or fixes abc.
closes #(issue)
closes #(another issue)
## Checklist
Please put an x inside each checkbox to indicate that you've read and followed it: `[ ]` -> `[x]`
If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want).
- [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md).
- [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat.
- [x] I/we have not leveraged AI to create the proposed changes.
- [x] I/we have performed a self-review of added code.
- [x] I/we have written code that is legible and maintainable by others.
- [ ] I/we have commented the added code, particularly in hard-to-understand areas.
- [ ] I/we have made any necessary changes to documentation.
- [ ] I/we have added tests that cover new code.
- [ ] I/we have run tests and they pass locally with the changes.
- [ ] I/we have run `go fmt ./...` and `golangci-lint run`.
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4344
Co-authored-by: nicole mikołajczyk <git@mkljczk.pl>
Co-committed-by: nicole mikołajczyk <git@mkljczk.pl>
Diffstat (limited to 'web/source/settings')
| -rw-r--r-- | web/source/settings/views/moderation/reports/detail.tsx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/web/source/settings/views/moderation/reports/detail.tsx b/web/source/settings/views/moderation/reports/detail.tsx index b176b9f1e..a22fdf3e2 100644 --- a/web/source/settings/views/moderation/reports/detail.tsx +++ b/web/source/settings/views/moderation/reports/detail.tsx @@ -212,14 +212,18 @@ function ReportActionForm({ report }) { An optional comment can be included while resolving this report. This is useful for providing an explanation about what action was taken (if any) before the report was marked as resolved. - <br /> - <div className="info"> - <i className="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i> - <b> - If the report was created by a local account, then any - comment made here will be emailed to that account's user! - </b> - </div> + {report.account.domain == null && ( + <> + <br /> + <div className="info"> + <i className="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i> + <b> + As the report was created by a local account, the + comment will be emailed to that account's user! + </b> + </div> + </> + )} </> <TextArea field={form.comment} |
