make rhash optional

This commit is contained in:
Balakrishnan Balasubramanian 2022-05-03 18:32:23 -04:00
parent 61c73803c7
commit 3f4be7b0ae
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,7 @@
* ✓ Wrap content inside item ⚠️ atom calls it entry
* ✓ Implement atom
* ✓ Cleanup
* Show Feed name instead of Link
* Change flags to os.Args[1] for config path
* Make Rhash optional

View File

@ -83,6 +83,9 @@ func NewTelegramSender(transport http.RoundTripper, authToken string) TelegramSe
}
func genIVLink(link, rhash string) string {
if rhash == "" {
return link
}
query := url.Values{}
query.Set("url", link)
query.Set("rhash", rhash)