Browse Source

Update Inbox

Daniel Supernault 10 tháng trước cách đây
mục cha
commit
79d73c508c
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Util/ActivityPub/Inbox.php

+ 2 - 2
app/Util/ActivityPub/Inbox.php

@@ -417,8 +417,8 @@ class Inbox
             return;
         }
 
-        $msg = $activity['content'];
-        $msgText = strip_tags($activity['content']);
+        $msg = Purify::clean($activity['content']);
+        $msgText = strip_tags($msg);
 
         if (Str::startsWith($msgText, '@'.$profile->username)) {
             $len = strlen('@'.$profile->username);