diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-04 00:44:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 00:44:34 +0100 |
commit | ae1b9cf70a5c7426054947bef8cc836fd402c173 (patch) | |
tree | 8f2d97061454bcf37cfe25b1c365451c6cdf34be /app/lib | |
parent | f821eca3b3ed5f3fe8d1656a3ed6d6d2c0435f96 (diff) |
Fix remote poll expiration time (#10144)
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/activitypub/activity/create.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 793e20dbe..08c46be44 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -216,7 +216,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity expires_at = begin if @object['closed'].is_a?(String) @object['closed'] - elsif !@object['closed'].is_a?(FalseClass) + elsif !@object['closed'].nil? && !@object['closed'].is_a?(FalseClass) Time.now.utc else @object['endTime'] |