From d3d6558913b8051096164ae72a6089fec87d2f01 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 13 Jun 2025 10:12:05 -0600 Subject: [PATCH] hide "Rate proposed Community Notes" --- src/parser.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/parser.nim b/src/parser.nim index 2f4236e..e1cbb71 100644 --- a/src/parser.nim +++ b/src/parser.nim @@ -512,12 +512,14 @@ proc parseGraphTweet(js: JsonNode; isLegacy=false): Tweet = result.quote = some(parseGraphTweet(js{"quoted_status_result", "result"}, isLegacy)) with communityNote, js{"birdwatch_pivot"}: + let title = communityNote{"title"}.getStr let note = BirdwatchNote( id: communityNote{"note", "rest_id"}.getStr, - title: communityNote{"title"}.getStr, + title: title, ) note.expandBirdwatchEntities(communityNote{"subtitle"}) - result.birdwatch = some(note) + if title != "Rate proposed Community Notes": + result.birdwatch = some(note) if not js{"views", "count"}.isNull: result.stats.views = parseInt(js{"views", "count"}.getStr)