From 6f1d975e741212e18566905d3571f8de828154cd Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 12 Dec 2023 20:41:10 -0500 Subject: [PATCH] Make sure banned toast has correct user. (#2281) --- src/shared/components/post/post.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 3ff6c18e..ff8e201d 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -1008,7 +1008,7 @@ export class Post extends Component { 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 { 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), }, ), );