about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/stream_entry.rb2
-rw-r--r--app/services/process_feed_service.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/stream_entry.rb b/app/models/stream_entry.rb
index 0df7ece60..bc4821ca9 100644
--- a/app/models/stream_entry.rb
+++ b/app/models/stream_entry.rb
@@ -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
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index d24b803e6..4ed0bf0bb 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -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)