mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-17 08:03:53 -05:00
[Glitch] Fix notifications about deleted reports not being also deleted
Port d2eb726962187226c85ef7f2ee1886cb0767bbd1 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
5dfb7ba35c
commit
ce27c6502b
@ -69,6 +69,10 @@ export default class AdminReport extends ImmutablePureComponent {
|
|||||||
render () {
|
render () {
|
||||||
const { intl, account, notification, unread, report } = this.props;
|
const { intl, account, notification, unread, report } = this.props;
|
||||||
|
|
||||||
|
if (!report) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// Links to the display name.
|
// Links to the display name.
|
||||||
const displayName = account.get('display_name_html') || account.get('username');
|
const displayName = account.get('display_name_html') || account.get('username');
|
||||||
const link = (
|
const link = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user