فهرست منبع

Update todo list

Zed 7 سال پیش
والد
کامیت
096471b50d
2فایلهای تغییر یافته به همراه11 افزوده شده و 9 حذف شده
  1. 7 5
      README.md
  2. 4 4
      src/utils.nim

+ 7 - 5
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
+- Search (+ hashtag search)
+- Emoji support
+- Twitter polls
 - Server configuration
-- Video support with hls.js
-- Json API endpoints
+- Simple account system with feed (excludes retweets)
 - Hiding retweets from timelines
+- Video support with hls.js
+- Media-only view
 - Themes
-- Emoji support
 - File caching
+- Json API endpoints
 - Nitter logo
 
 ## Why?

+ 4 - 4
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]