fixed api errors

This commit is contained in:
Michael 2019-08-13 19:57:30 +01:00
parent 0c3a257a6b
commit 1a2d9265e0

3
api.go
View File

@ -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