mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix nil error in focal_point? (#6537)
This commit is contained in:
parent
5f3bee345d
commit
b8535ad4df
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class ActivityPub::ImageSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def focal_point?
|
||||
object.respond_to?(:meta) && object.meta['focus'].is_a?(Hash)
|
||||
object.respond_to?(:meta) && object.meta.is_a?(Hash) && object.meta['focus'].is_a?(Hash)
|
||||
end
|
||||
|
||||
def focal_point
|
||||
|
|
Loading…
Reference in a new issue