Eugen Rochko
пре 6 година
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са
1 додато и
1 уклоњено
-
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 |
|
|
|