mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 11:06:30 +00:00
Update todo list
This commit is contained in:
parent
dd8a7dcdff
commit
096471b50d
2 changed files with 13 additions and 11 deletions
16
README.md
16
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?
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue