mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:07:43 +08:00
FIX: Relative links in translations should work with subfolder
This commit is contained in:
@ -952,7 +952,7 @@ class User < ActiveRecord::Base
|
||||
.where.not(post_id: disagreed_flag_post_ids)
|
||||
.each do |tl|
|
||||
begin
|
||||
message = I18n.t('flag_reason.spam_hosts', domain: tl.domain)
|
||||
message = I18n.t('flag_reason.spam_hosts', domain: tl.domain, base_path: Discourse.base_path)
|
||||
PostAction.act(Discourse.system_user, tl.post, PostActionType.types[:spam], message: message)
|
||||
rescue PostAction::AlreadyActed
|
||||
# If the user has already acted, just ignore it
|
||||
|
Reference in New Issue
Block a user