mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: Use the full URL for reviewable content to make the API easier
This commit is contained in:
@ -20,7 +20,7 @@ class Reviewable < ActiveRecord::Base
|
|||||||
def initialize(meta_topic)
|
def initialize(meta_topic)
|
||||||
@id = meta_topic.id
|
@id = meta_topic.id
|
||||||
@has_more = false
|
@has_more = false
|
||||||
@permalink = meta_topic.relative_url
|
@permalink = "#{Discourse.base_url}#{meta_topic.relative_url}"
|
||||||
@posts = []
|
@posts = []
|
||||||
|
|
||||||
meta_posts = meta_topic.ordered_posts.where(post_type: ::Post.types[:regular]).limit(2)
|
meta_posts = meta_topic.ordered_posts.where(post_type: ::Post.types[:regular]).limit(2)
|
||||||
|
Reference in New Issue
Block a user