|
|
@ -10,6 +10,6 @@ json.memo do
|
|
|
|
json.tag memo.tag_repertoires.map(&:name)
|
|
|
|
json.tag memo.tag_repertoires.map(&:name)
|
|
|
|
json.time memo.created_at
|
|
|
|
json.time memo.created_at
|
|
|
|
json.replies_count memo.all_replies_count
|
|
|
|
json.replies_count memo.all_replies_count
|
|
|
|
json.user_praise memo.praise_treads.user_liker(@user.try(:id)).count > 0 ? true : false
|
|
|
|
json.user_praise memo.praise_treads.user_liker(@user.try(:id)).count > 0
|
|
|
|
json.memo_praise_count memo.praise_treads.liker.count
|
|
|
|
json.memo_praise_count memo.praise_treads.liker.count
|
|
|
|
end
|
|
|
|
end
|
|
|
|