about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/subscription.rb2
-rw-r--r--app/services/update_remote_profile_service.rb2
-rw-r--r--app/workers/processing_worker.rb1
-rw-r--r--app/workers/salmon_worker.rb1
4 files changed, 5 insertions, 1 deletions
diff --git a/app/models/subscription.rb b/app/models/subscription.rb
index e968c6675..497cabb09 100644
--- a/app/models/subscription.rb
+++ b/app/models/subscription.rb
@@ -1,7 +1,7 @@
 # frozen_string_literal: true
 
 class Subscription < ApplicationRecord
-  MIN_EXPIRATION = 3600 * 24
+  MIN_EXPIRATION = 3600 * 24 * 7
   MAX_EXPIRATION = 3600 * 24 * 30
 
   belongs_to :account
diff --git a/app/services/update_remote_profile_service.rb b/app/services/update_remote_profile_service.rb
index 26ab84d75..56b25816f 100644
--- a/app/services/update_remote_profile_service.rb
+++ b/app/services/update_remote_profile_service.rb
@@ -5,6 +5,8 @@ class UpdateRemoteProfileService < BaseService
   DFRN_NS = 'http://purl.org/macgirvin/dfrn/1.0'
 
   def call(xml, account, resubscribe = false)
+    return if xml.nil?
+
     author_xml = xml.at_xpath('./xmlns:author') || xml.at_xpath('./dfrn:owner', dfrn: DFRN_NS)
     hub_link   = xml.at_xpath('./xmlns:link[@rel="hub"]')
 
diff --git a/app/workers/processing_worker.rb b/app/workers/processing_worker.rb
index 3b11a4c5e..34433a793 100644
--- a/app/workers/processing_worker.rb
+++ b/app/workers/processing_worker.rb
@@ -2,6 +2,7 @@
 
 class ProcessingWorker
   include Sidekiq::Worker
+  sidekiq_options backtrace: true
 
   def perform(account_id, body)
     ProcessFeedService.new.call(body, Account.find(account_id))
diff --git a/app/workers/salmon_worker.rb b/app/workers/salmon_worker.rb
index 24fb94012..4a6ccf54d 100644
--- a/app/workers/salmon_worker.rb
+++ b/app/workers/salmon_worker.rb
@@ -2,6 +2,7 @@
 
 class SalmonWorker
   include Sidekiq::Worker
+  sidekiq_options backtrace: true
 
   def perform(account_id, body)
     ProcessInteractionService.new.call(body, Account.find(account_id))