mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-09 05:15:53 +10:00
fix issue
This commit is contained in:
@@ -8,7 +8,7 @@ class EachPostSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def first_sharer
|
||||
user = ShareInstance.where(sharable_id: object.id).first.user
|
||||
user = ShareInstance.where(sharable_id: object.id).first.try(:user)
|
||||
user_info_json(user)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user