hide "Rate proposed Community Notes"
This commit is contained in:
parent
cef5429cdc
commit
d3d6558913
@ -512,11 +512,13 @@ 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"})
|
||||
if title != "Rate proposed Community Notes":
|
||||
result.birdwatch = some(note)
|
||||
|
||||
if not js{"views", "count"}.isNull:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user