Explorar o código

Update StatusPipeline

Daniel Supernault %!s(int64=7) %!d(string=hai) anos
pai
achega
1b794c8508

+ 1 - 1
app/Http/Controllers/CommentController.php

@@ -26,7 +26,7 @@ class CommentController extends Controller
       $reply = new Status();
       $reply = new Status();
       $reply->profile_id = $profile->id;
       $reply->profile_id = $profile->id;
       $reply->caption = $comment;
       $reply->caption = $comment;
-      $reply->rendered = $comment;
+      $reply->rendered = e($comment);
       $reply->in_reply_to_id = $status->id;
       $reply->in_reply_to_id = $status->id;
       $reply->in_reply_to_profile_id = $status->profile_id;
       $reply->in_reply_to_profile_id = $status->profile_id;
       $reply->save();
       $reply->save();

+ 1 - 1
app/Jobs/StatusPipeline/StatusEntityLexer.php

@@ -45,7 +45,7 @@ class StatusEntityLexer implements ShouldQueue
     public function parseHashtags()
     public function parseHashtags()
     {
     {
         $status = $this->status;
         $status = $this->status;
-        $text = $status->caption;
+        $text = e($status->caption);
         $tags = HashtagLexer::getHashtags($text);
         $tags = HashtagLexer::getHashtags($text);
         $rendered = $text;
         $rendered = $text;
         if(count($tags) > 0) {
         if(count($tags) > 0) {