mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: Don't hardcode the path into translations.
This commit is contained in:
@ -31,7 +31,7 @@ class BasicPostSerializer < ApplicationSerializer
|
||||
def cooked
|
||||
if cooked_hidden
|
||||
if scope.current_user && object.user_id == scope.current_user.id
|
||||
I18n.t('flagging.you_must_edit')
|
||||
I18n.t('flagging.you_must_edit', path: "/my/messages")
|
||||
else
|
||||
I18n.t('flagging.user_must_edit')
|
||||
end
|
||||
|
Reference in New Issue
Block a user