Mark if post was received via relay
[friendica.git/.git] / src / Protocol / ActivityPub / Processor.php
index aa0d145..52aaa97 100644 (file)
@@ -297,6 +297,10 @@ class Processor
                        }
                }
 
+               if (!empty($activity['from-relay'])) {
+                       $item['direction'] = Conversation::RELAY;
+               }
+
                $item['isForum'] = false;
 
                if (!empty($activity['thread-completion'])) {