make rhash optional
This commit is contained in:
parent
61c73803c7
commit
3f4be7b0ae
1
TODO.md
1
TODO.md
@ -14,6 +14,7 @@
|
|||||||
* ✓ Wrap content inside item ⚠️ atom calls it entry
|
* ✓ Wrap content inside item ⚠️ atom calls it entry
|
||||||
* ✓ Implement atom
|
* ✓ Implement atom
|
||||||
* ✓ Cleanup
|
* ✓ Cleanup
|
||||||
|
* Show Feed name instead of Link
|
||||||
* Change flags to os.Args[1] for config path
|
* Change flags to os.Args[1] for config path
|
||||||
* Make Rhash optional
|
* Make Rhash optional
|
||||||
|
|
||||||
|
@ -83,6 +83,9 @@ func NewTelegramSender(transport http.RoundTripper, authToken string) TelegramSe
|
|||||||
}
|
}
|
||||||
|
|
||||||
func genIVLink(link, rhash string) string {
|
func genIVLink(link, rhash string) string {
|
||||||
|
if rhash == "" {
|
||||||
|
return link
|
||||||
|
}
|
||||||
query := url.Values{}
|
query := url.Values{}
|
||||||
query.Set("url", link)
|
query.Set("url", link)
|
||||||
query.Set("rhash", rhash)
|
query.Set("rhash", rhash)
|
||||||
|
Loading…
Reference in New Issue
Block a user