Make sure banned toast has correct user. (#2281)

This commit is contained in:
Dessalines 2023-12-12 20:41:10 -05:00 committed by GitHub
parent a8817eae25
commit 6f1d975e74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1008,7 +1008,7 @@ export class Post extends Component<any, PostState> {
I18NextService.i18n.t(
form.ban ? "banned_from_community" : "unbanned_from_community",
{
user: getApubName(this.state.postRes.data.post_view.creator),
user: getApubName(banRes.data.person_view.person),
community: getApubName(this.state.postRes.data.post_view.community),
},
),
@ -1024,7 +1024,7 @@ export class Post extends Component<any, PostState> {
I18NextService.i18n.t(
form.ban ? "banned_from_site" : "unbanned_from_site",
{
user: getApubName(this.state.postRes.data.post_view.creator),
user: getApubName(banRes.data.person_view.person),
},
),
);