1
0
mirror of https://github.com/zedeus/nitter synced 2024-11-22 01:45:22 +01:00

Fix typo to actually cache pinned tweets

This commit is contained in:
Zed 2023-01-20 04:55:56 +01:00
parent ff61d97a1d
commit 22b51b414b

View File

@ -154,7 +154,7 @@ proc getCachedTweet*(id: int64): Future[Tweet] {.async.} =
tweet.deserialize(Tweet)
else:
result = await getStatus($id)
if result.isNil:
if not result.isNil:
await cache(result)
proc getCachedPhotoRail*(name: string): Future[PhotoRail] {.async.} =