From 7538e7da618d1a1bc5776c3e94c468a84a217ebc Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Tue, 20 Oct 2020 11:20:48 +0100 Subject: [PATCH] FIX: Switch Discourse.base_uri usage to base_path (#19) base_uri was deprecated, because the name was unclear. --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index c7754c9..fc21a71 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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