From: Takeshi Umeda Date: Thu, 23 Jun 2022 21:10:03 +0000 (+0900) Subject: Fix missing , (#18660) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=be2ecdb5626da3d3830c481c090b1cd90f81079e;p=mastodon.git Fix missing , (#18660) --- diff --git a/app/lib/activitypub/parser/media_attachment_parser.rb b/app/lib/activitypub/parser/media_attachment_parser.rb index 30bea1f0e..656be84b7 100644 --- a/app/lib/activitypub/parser/media_attachment_parser.rb +++ b/app/lib/activitypub/parser/media_attachment_parser.rb @@ -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