A lot of fixes from a live test
This commit is contained in:
parent
f1654da7ad
commit
47d50b0e39
17 changed files with 59 additions and 27 deletions
|
@ -10,7 +10,7 @@ class ProcessFeedService < BaseService
|
|||
end
|
||||
|
||||
xml.xpath('//xmlns:entry').each do |entry|
|
||||
next unless [:note, :comment, :activity].includes? object_type(entry)
|
||||
next unless [:note, :comment, :activity].include? object_type(entry)
|
||||
|
||||
status = Status.find_by(uri: activity_id(entry))
|
||||
|
||||
|
@ -88,7 +88,7 @@ class ProcessFeedService < BaseService
|
|||
end
|
||||
|
||||
def thread_id(xml)
|
||||
xml.at_xpath('./thr:in-reply-to-id').attribute('ref').value
|
||||
xml.at_xpath('./thr:in-reply-to').attribute('ref').value
|
||||
rescue
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue