Fix typo in ActivityPub::FetchRemotePollService (#10145)

master
Eugen Rochko 6 years ago committed by GitHub
parent ae1b9cf70a
commit 878a75ba21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/services/activitypub/fetch_remote_poll_service.rb

@ -11,7 +11,7 @@ class ActivityPub::FetchRemotePollService < BaseService
expires_at = begin expires_at = begin
if @json['closed'].is_a?(String) if @json['closed'].is_a?(String)
@json['closed'] @json['closed']
elsif !@object['closed'].nil? && !@object['closed'].is_a?(FalseClass) elsif !@json['closed'].nil? && !@object['closed'].is_a?(FalseClass)
Time.now.utc Time.now.utc
else else
@json['endTime'] @json['endTime']

Loading…
Cancel
Save