Skip to content
Snippets Groups Projects
Unverified Commit b8535ad4 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix nil error in focal_point? (#6537)

parent 5f3bee34
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment