YT Comments: Revert isPinned to a nil check (#3631)

このコミットが含まれているのは:
Samantaz Fox 2023-02-12 18:09:52 +01:00
コミット f9c2412010
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: F42821059186176E
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -181,7 +181,7 @@ def fetch_youtube_comments(id, cursor, format, locale, thin_mode, region, sort_b
json.field "content", html_to_content(content_html)
json.field "contentHtml", content_html
json.field "isPinned", (node_comment["pinnedCommentBadge"]?.try(&.as_bool) == true)
json.field "isPinned", (node_comment["pinnedCommentBadge"]? != nil)
json.field "published", published.to_unix
json.field "publishedText", translate(locale, "`x` ago", recode_date(published, locale))