浏览代码

Update Inbox

Daniel Supernault 7 月之前
父节点
当前提交
79d73c508c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Util/ActivityPub/Inbox.php

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

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