Add missing tombstones

This commit is contained in:
Zed 2020-06-01 08:14:58 +02:00
parent 21fdbb88ec
commit a2c0e1a21d
2 changed files with 5 additions and 1 deletions

View file

@ -379,5 +379,5 @@ proc parsePhotoRail*(tl: Timeline): PhotoRail =
result.add GalleryPhoto(
url: url,
tweetId: $tweet.id,
color: "#161616" # TODO: photo rail specific parser?
color: "#161616"
)

View file

@ -102,6 +102,10 @@ proc getTombstone*(js: JsonNode): string =
result = "This account owner limits who can view their tweets."
of "Missing":
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:
result = js{"tombstoneInfo", "richText", "text"}.getStr
if epitaph.len > 0 or result.len > 0: