mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 23:14:04 -04:00
regression: bookmarked may be missing, do not fail
This commit is contained in:
parent
1aa1e30e88
commit
59a28bf5c1
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ class PostsController < ApplicationController
|
||||||
|
|
||||||
tu = TopicUser.get(post.topic, current_user)
|
tu = TopicUser.get(post.topic, current_user)
|
||||||
|
|
||||||
render_json_dump(topic_bookmarked: tu.bookmarked)
|
render_json_dump(topic_bookmarked: tu.try(:bookmarked))
|
||||||
end
|
end
|
||||||
|
|
||||||
def wiki
|
def wiki
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue