Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 12:07:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-19 12:07:20 +0300
commit76e68e67ab3e928d289361ac20558a053a623263 (patch)
tree096303093b1c8295d0f238b4ec02c0663c3f8905 /app/services/award_emojis
parent37c57082df2119d2daa5dc37ca2a646a0031584d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/award_emojis')
-rw-r--r--app/services/award_emojis/add_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/award_emojis/add_service.rb b/app/services/award_emojis/add_service.rb
index 065ef9dc708..b5aa8f920ff 100644
--- a/app/services/award_emojis/add_service.rb
+++ b/app/services/award_emojis/add_service.rb
@@ -6,11 +6,11 @@ module AwardEmojis
def execute
unless awardable.user_can_award?(current_user)
- return error('User cannot award emoji to awardable', status: :forbidden)
+ return error('User cannot add emoji reactions to awardable', status: :forbidden)
end
unless awardable.emoji_awardable?
- return error('Awardable cannot be awarded emoji', status: :unprocessable_entity)
+ return error('Awardable cannot add emoji reactions', status: :unprocessable_entity)
end
award = awardable.award_emoji.create(name: name, user: current_user)