From 5072a6ad184e477fa1dee628b58b3b2093f6d61f Mon Sep 17 00:00:00 2001 From: nanaya Date: Tue, 1 Oct 2024 20:29:53 +0900 Subject: [PATCH] Improve chat announcement permission message --- app/Singletons/OsuAuthorize.php | 2 +- resources/lang/en/authorization.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Singletons/OsuAuthorize.php b/app/Singletons/OsuAuthorize.php index 2ae7d2041cd..9607bdf5cd2 100644 --- a/app/Singletons/OsuAuthorize.php +++ b/app/Singletons/OsuAuthorize.php @@ -863,7 +863,7 @@ public function checkChatAnnounce(?User $user): string return 'ok'; } - return $prefix.'annnonce_only'; + return $prefix.'no_announce'; } /** diff --git a/resources/lang/en/authorization.php b/resources/lang/en/authorization.php index 804f05c1cc7..7eec1d3ea6d 100644 --- a/resources/lang/en/authorization.php +++ b/resources/lang/en/authorization.php @@ -61,11 +61,11 @@ ], 'chat' => [ - 'annnonce_only' => 'This channel is for announcements only.', 'blocked' => 'Cannot message a user that is blocking you or that you have blocked.', 'friends_only' => 'User is blocking messages from people not on their friends list.', 'moderated' => 'This channel is currently moderated.', 'no_access' => 'You do not have access to that channel.', + 'no_announce' => 'You do not have permission to post announcement.', 'receive_friends_only' => 'The user may not be able to reply because you are only accepting messages from people on your friends list.', 'restricted' => 'You cannot send messages while silenced, restricted or banned.', 'silenced' => 'You cannot send messages while silenced, restricted or banned.',