mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 10:41:25 +08:00
FIX: rename action_code_href to action_code_path (#14834)
Small actions should use path instead of absolute url. getURL function is necessary to insert a potential subfolder prefix.
This commit is contained in:

committed by
GitHub

parent
fc98d1edfa
commit
8b93da9fe0
@ -170,7 +170,7 @@ class UserAction < ActiveRecord::Base
|
||||
action_type
|
||||
action_code
|
||||
action_code_who
|
||||
action_code_href
|
||||
action_code_path
|
||||
topic_closed
|
||||
topic_id
|
||||
topic_archived
|
||||
@ -219,7 +219,7 @@ class UserAction < ActiveRecord::Base
|
||||
p.post_type,
|
||||
p.action_code,
|
||||
pc.value AS action_code_who,
|
||||
pc2.value AS action_code_href,
|
||||
pc2.value AS action_code_path,
|
||||
p.edit_reason,
|
||||
t.category_id
|
||||
FROM user_actions as a
|
||||
@ -231,7 +231,7 @@ class UserAction < ActiveRecord::Base
|
||||
JOIN users au on au.id = a.user_id
|
||||
LEFT JOIN categories c on c.id = t.category_id
|
||||
LEFT JOIN post_custom_fields pc ON pc.post_id = a.target_post_id AND pc.name = 'action_code_who'
|
||||
LEFT JOIN post_custom_fields pc2 ON pc2.post_id = a.target_post_id AND pc.name = 'action_code_href'
|
||||
LEFT JOIN post_custom_fields pc2 ON pc2.post_id = a.target_post_id AND pc.name = 'action_code_path'
|
||||
/*where*/
|
||||
/*order_by*/
|
||||
/*offset*/
|
||||
|
Reference in New Issue
Block a user