From 1a2d9265e0995006f93aeeebed540ae4a1b63c79 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 13 Aug 2019 19:57:30 +0100 Subject: [PATCH] fixed api errors --- api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index 1b5f61d..aca6777 100755 --- a/api.go +++ b/api.go @@ -6,6 +6,7 @@ import ( "html" "io/ioutil" "net/http" + "strconv" "strings" "time" @@ -113,7 +114,7 @@ func Topics(path string) map[string]interface{} { } for _, topics := range resp.TopicList.Topics { var t Topic - resp, err := Request("t/" + topics.Slug) + resp, err := Request("t/" + topics.Slug + "/" + strconv.Itoa(topics.ID)) if err != nil { m := structs.Map(err) return m