hide "Rate proposed Community Notes"

This commit is contained in:
Cynthia Foxwell 2025-06-13 10:12:05 -06:00
parent cef5429cdc
commit d3d6558913
No known key found for this signature in database

View File

@ -512,12 +512,14 @@ proc parseGraphTweet(js: JsonNode; isLegacy=false): Tweet =
result.quote = some(parseGraphTweet(js{"quoted_status_result", "result"}, isLegacy)) result.quote = some(parseGraphTweet(js{"quoted_status_result", "result"}, isLegacy))
with communityNote, js{"birdwatch_pivot"}: with communityNote, js{"birdwatch_pivot"}:
let title = communityNote{"title"}.getStr
let note = BirdwatchNote( let note = BirdwatchNote(
id: communityNote{"note", "rest_id"}.getStr, id: communityNote{"note", "rest_id"}.getStr,
title: communityNote{"title"}.getStr, title: title,
) )
note.expandBirdwatchEntities(communityNote{"subtitle"}) note.expandBirdwatchEntities(communityNote{"subtitle"})
result.birdwatch = some(note) if title != "Rate proposed Community Notes":
result.birdwatch = some(note)
if not js{"views", "count"}.isNull: if not js{"views", "count"}.isNull:
result.stats.views = parseInt(js{"views", "count"}.getStr) result.stats.views = parseInt(js{"views", "count"}.getStr)