]> cat aescling's git repositories - mastodon.git/commitdiff
Fix missing , (#18660)
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Thu, 23 Jun 2022 21:10:03 +0000 (06:10 +0900)
committeraescling <aescling+gitlab@cat.family>
Mon, 5 Sep 2022 04:27:52 +0000 (00:27 -0400)
app/lib/activitypub/parser/media_attachment_parser.rb

index 30bea1f0e6f887a8f9220ce413bdeda907c9e9ad..656be84b73ff0a75ae8bdf446c63e9fa49a1760a 100644 (file)
@@ -50,7 +50,7 @@ class ActivityPub::Parser::MediaAttachmentParser
     components = begin
       blurhash = @json['blurhash']
 
-      if blurhash.present? && /^[\w#$%*+-.:;=?@\[\]^{|}~]+$/.match?(blurhash)
+      if blurhash.present? && /^[\w#$%*+,-.:;=?@\[\]^{|}~]+$/.match?(blurhash)
         Blurhash.components(blurhash)
       end
     end