Skip to content

Commit

Permalink
FIX: user archive url field should have absolute URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitjalan committed Nov 25, 2015
1 parent cb05b44 commit 2eba00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/regular/export_csv_file.rb
Expand Up @@ -201,7 +201,7 @@ def get_user_archive_fields(user_archive)
category_name = "-"
end
is_pm = topic_data.archetype == "private_message" ? I18n.t("csv_export.boolean_yes") : I18n.t("csv_export.boolean_no")
url = "#{Discourse.base_uri}/t/#{topic_data.slug}/#{topic_data.id}/#{user_archive['post_number']}"
url = "#{Discourse.base_url}/t/#{topic_data.slug}/#{topic_data.id}/#{user_archive['post_number']}"

topic_hash = {"post" => user_archive['raw'], "topic_title" => topic_data.title, "category" => category_name, "sub_category" => sub_category, "is_pm" => is_pm, "url" => url}
user_archive.merge!(topic_hash)
Expand Down

0 comments on commit 2eba00a

Please sign in to comment.