Add "user_is_author" to a story's json
This commit is contained in:
parent
d73262d79a
commit
974daaf04c
|
@ -303,6 +303,7 @@ class Story < ApplicationRecord
|
|||
{description_plain: :description},
|
||||
:comments_url,
|
||||
{submitter_user: :user},
|
||||
:user_is_author,
|
||||
{tags: tags.map(&:tag).sort}
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue