mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
regression: bookmarked may be missing, do not fail
This commit is contained in:
@ -287,7 +287,7 @@ class PostsController < ApplicationController
|
||||
|
||||
tu = TopicUser.get(post.topic, current_user)
|
||||
|
||||
render_json_dump(topic_bookmarked: tu.bookmarked)
|
||||
render_json_dump(topic_bookmarked: tu.try(:bookmarked))
|
||||
end
|
||||
|
||||
def wiki
|
||||
|
Reference in New Issue
Block a user