hide "Rate proposed Community Notes"
This commit is contained in:
parent
cef5429cdc
commit
d3d6558913
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user