You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
328 B
8 lines
328 B
json.(memo, :id, :subject, :is_md, :content, :sticky, :reward, :viewed_count)
|
|
|
|
json.tag memo.tag_repertoires.map(&:name)
|
|
json.time memo.created_at
|
|
json.replies_count memo.all_replies_count
|
|
json.user_praise memo.praise_treads.user_liker(@user.try(:id)) ? true : false
|
|
json.memo_praise_count memo.praise_treads.liker.count
|