Fix default assumed object type (note->activity), make stream entry threaded? check aware of orphaned replies

lolsob-rspec
Eugen Rochko 2016-10-10 02:55:30 +02:00
parent 848cbbd242
commit 7cb55af441
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class StreamEntry < ApplicationRecord
end
def threaded?
verb == :favorite || object_type == :comment
(verb == :favorite || object_type == :comment) && !thread.nil?
end
def thread

View File

@ -214,7 +214,7 @@ class ProcessFeedService < BaseService
def object_type(xml)
xml.at_xpath('./activity:object-type').content.gsub('http://activitystrea.ms/schema/1.0/', '').to_sym
rescue
:note
:activity
end
def verb(xml)