mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 14:45:20 +00:00
Make sure banned toast has correct user. (#2281)
This commit is contained in:
parent
a8817eae25
commit
6f1d975e74
|
@ -1008,7 +1008,7 @@ export class Post extends Component<any, PostState> {
|
||||||
I18NextService.i18n.t(
|
I18NextService.i18n.t(
|
||||||
form.ban ? "banned_from_community" : "unbanned_from_community",
|
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),
|
community: getApubName(this.state.postRes.data.post_view.community),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -1024,7 +1024,7 @@ export class Post extends Component<any, PostState> {
|
||||||
I18NextService.i18n.t(
|
I18NextService.i18n.t(
|
||||||
form.ban ? "banned_from_site" : "unbanned_from_site",
|
form.ban ? "banned_from_site" : "unbanned_from_site",
|
||||||
{
|
{
|
||||||
user: getApubName(this.state.postRes.data.post_view.creator),
|
user: getApubName(banRes.data.person_view.person),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue