FIX: Switch Discourse.base_uri usage to base_path (#19)

base_uri was deprecated, because the name was unclear.
This commit is contained in:
Daniel Waterworth 2020-10-20 11:20:48 +01:00 committed by GitHub
parent a5a7b78a97
commit 7538e7da61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ after_initialize do
url = "/t/#{object[:post].topic_id}/#{object[:post].post_number}"
end
"#{Discourse.base_uri}#{url}"
"#{Discourse.base_path}#{url}"
end
def post_title