about summary refs log tree commit diff
path: root/app/lib/activitypub/parser/status_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/activitypub/parser/status_parser.rb')
-rw-r--r--app/lib/activitypub/parser/status_parser.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lib/activitypub/parser/status_parser.rb b/app/lib/activitypub/parser/status_parser.rb
index 3ba154d01..75b8f3d5c 100644
--- a/app/lib/activitypub/parser/status_parser.rb
+++ b/app/lib/activitypub/parser/status_parser.rb
@@ -79,6 +79,8 @@ class ActivityPub::Parser::StatusParser
       :unlisted
     elsif audience_to.include?(@magic_values[:followers_collection])
       :private
+    elsif direct_message == false
+      :limited
     else
       :direct
     end
@@ -94,6 +96,10 @@ class ActivityPub::Parser::StatusParser
     end
   end
 
+  def direct_message
+    @object['directMessage']
+  end
+
   private
 
   def audience_to