mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-08 21:07:08 +10:00
fix issue.
This commit is contained in:
@@ -14,7 +14,7 @@ class EachPostSerializer < ActiveModel::Serializer
|
||||
|
||||
def last_sharer
|
||||
return nil if ShareInstance.where(sharable_id: object.id).count == 1
|
||||
user = ShareInstance.where(sharable_id: object.id).last.user
|
||||
user = ShareInstance.where(sharable_id: object.id).last.try(:user)
|
||||
user_info_json(user)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user