From 096471b50dd31508ee74980992a3b43b5ecf40dd Mon Sep 17 00:00:00 2001 From: Zed Date: Sun, 23 Jun 2019 14:34:19 +0200 Subject: [PATCH] Update todo list --- README.md | 16 +++++++++------- src/utils.nim | 8 ++++---- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 648b1f5..144543e 100644 --- a/README.md +++ b/README.md @@ -23,17 +23,19 @@ like the title, this will change as the project matures a bit. For now the focus is on implementing missing features. ## Todo (roughly in this order) -- Search -- Simple account system with feed (excludes retweets) - Twitter "Cards" (link previews) - Nitter link previews -- Server configuration -- Video support with hls.js -- Json API endpoints -- Hiding retweets from timelines -- Themes +- Search (+ hashtag search) - Emoji support +- Twitter polls +- Server configuration +- Simple account system with feed (excludes retweets) +- Hiding retweets from timelines +- Video support with hls.js +- Media-only view +- Themes - File caching +- Json API endpoints - Nitter logo ## Why? diff --git a/src/utils.nim b/src/utils.nim index 08d96eb..8afa3a1 100644 --- a/src/utils.nim +++ b/src/utils.nim @@ -5,13 +5,13 @@ const key = "supersecretkey" proc mimetype*(filename: string): string = if ".png" in filename: - return "image/" & "png" + "image/" & "png" elif ".jpg" in filename or ".jpeg" in filename: - return "image/" & "jpg" + "image/" & "jpg" elif ".mp4" in filename: - return "video/" & "mp4" + "video/" & "mp4" else: - return "text/plain" + "text/plain" proc getHmac*(data: string): string = ($hmac(sha256, key, data))[0 .. 12]