logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: b8535ad4df089166f1cae2cf61e55060223a2671
parent: 5f3bee345d0fcebabd90a28ada1fab7cd6e70b0e
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Thu, 22 Feb 2018 17:42:33 +0100

Fix nil error in focal_point? (#6537)


Diffstat:

Mapp/serializers/activitypub/image_serializer.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/serializers/activitypub/image_serializer.rb b/app/serializers/activitypub/image_serializer.rb @@ -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