mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-23 21:15:05 +01:00
Fix remote poll expiration time (#10144)
This commit is contained in:
parent
f821eca3b3
commit
ae1b9cf70a
@ -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']
|
||||
|
@ -11,7 +11,7 @@ class ActivityPub::FetchRemotePollService < BaseService
|
||||
expires_at = begin
|
||||
if @json['closed'].is_a?(String)
|
||||
@json['closed']
|
||||
elsif !@json['closed'].is_a?(FalseClass)
|
||||
elsif !@object['closed'].nil? && !@object['closed'].is_a?(FalseClass)
|
||||
Time.now.utc
|
||||
else
|
||||
@json['endTime']
|
||||
|
Loading…
Reference in New Issue
Block a user