From 743ce093a952d42d514e6892f134d08fe88db350 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 31 May 2019 15:29:53 -0400 Subject: [PATCH] FIX: Use the full URL for reviewable content to make the API easier --- lib/reviewable/conversation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reviewable/conversation.rb b/lib/reviewable/conversation.rb index 116c79cc897..54e6b54cff0 100644 --- a/lib/reviewable/conversation.rb +++ b/lib/reviewable/conversation.rb @@ -20,7 +20,7 @@ class Reviewable < ActiveRecord::Base def initialize(meta_topic) @id = meta_topic.id @has_more = false - @permalink = meta_topic.relative_url + @permalink = "#{Discourse.base_url}#{meta_topic.relative_url}" @posts = [] meta_posts = meta_topic.ordered_posts.where(post_type: ::Post.types[:regular]).limit(2)