about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-08-23 19:25:57 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-23 12:25:57 +0200
commit760cfe328fe209a48f7f8476daddf5a2ec089862 (patch)
treecea3b78c20d93696ce31a99e22f302f37d36a08a /app
parentc1b086a538d128e9fbceab4fc6686611a4f2710f (diff)
Fix accessing to XML attribute in FetchAtomService (#4668)
Diffstat (limited to 'app')
-rw-r--r--app/services/fetch_atom_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/fetch_atom_service.rb b/app/services/fetch_atom_service.rb
index afda50ae4..9c5777b5d 100644
--- a/app/services/fetch_atom_service.rb
+++ b/app/services/fetch_atom_service.rb
@@ -62,8 +62,8 @@ class FetchAtomService < BaseService
     json_link = page.xpath('//link[@rel="alternate"]').find { |link| ['application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'].include?(link['type']) }
     atom_link = page.xpath('//link[@rel="alternate"]').find { |link| link['type'] == 'application/atom+xml' }
 
-    result ||= process(json_link.href, terminal: true) unless json_link.nil? || @unsupported_activity
-    result ||= process(atom_link.href, terminal: true) unless atom_link.nil?
+    result ||= process(json_link['href'], terminal: true) unless json_link.nil? || @unsupported_activity
+    result ||= process(atom_link['href'], terminal: true) unless atom_link.nil?
 
     result
   end