mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 19:16:28 +00:00
Add missing tombstones
This commit is contained in:
parent
21fdbb88ec
commit
a2c0e1a21d
2 changed files with 5 additions and 1 deletions
|
@ -379,5 +379,5 @@ proc parsePhotoRail*(tl: Timeline): PhotoRail =
|
||||||
result.add GalleryPhoto(
|
result.add GalleryPhoto(
|
||||||
url: url,
|
url: url,
|
||||||
tweetId: $tweet.id,
|
tweetId: $tweet.id,
|
||||||
color: "#161616" # TODO: photo rail specific parser?
|
color: "#161616"
|
||||||
)
|
)
|
||||||
|
|
|
@ -102,6 +102,10 @@ proc getTombstone*(js: JsonNode): string =
|
||||||
result = "This account owner limits who can view their tweets."
|
result = "This account owner limits who can view their tweets."
|
||||||
of "Missing":
|
of "Missing":
|
||||||
result = "This tweet is unavailable."
|
result = "This tweet is unavailable."
|
||||||
|
of "Deactivated":
|
||||||
|
result = "This tweet is from an account that no longer exists."
|
||||||
|
of "Bounced":
|
||||||
|
result = "This tweet violated the Twitter rules."
|
||||||
else:
|
else:
|
||||||
result = js{"tombstoneInfo", "richText", "text"}.getStr
|
result = js{"tombstoneInfo", "richText", "text"}.getStr
|
||||||
if epitaph.len > 0 or result.len > 0:
|
if epitaph.len > 0 or result.len > 0:
|
||||||
|
|
Loading…
Reference in a new issue