Просмотр исходного кода

Update RemoteFollowPipeline job

Daniel Supernault 6 лет назад
Родитель
Сommit
28827559d5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Jobs/RemoteFollowPipeline/RemoteFollowPipeline.php

+ 1 - 1
app/Jobs/RemoteFollowPipeline/RemoteFollowPipeline.php

@@ -83,7 +83,7 @@ class RemoteFollowPipeline implements ShouldQueue
         $profile->domain = $domain;
         $profile->domain = $domain;
         $profile->username = $remoteUsername;
         $profile->username = $remoteUsername;
         $profile->name = $res['name'];
         $profile->name = $res['name'];
-        $profile->bio = str_limit($res['summary'], 125);
+        $profile->bio = Purify::clean($res['summary']);
         $profile->sharedInbox = $res['endpoints']['sharedInbox'];
         $profile->sharedInbox = $res['endpoints']['sharedInbox'];
         $profile->remote_url = $res['url'];
         $profile->remote_url = $res['url'];
         $profile->save();
         $profile->save();