Add "user_is_author" to a story's json

This commit is contained in:
Robey Pointer 2023-11-13 11:30:21 -08:00 committed by Peter Bhat Harkins
parent d73262d79a
commit 974daaf04c
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ class Story < ApplicationRecord
{description_plain: :description},
:comments_url,
{submitter_user: :user},
:user_is_author,
{tags: tags.map(&:tag).sort}
]