fixed api errors
This commit is contained in:
parent
0c3a257a6b
commit
1a2d9265e0
3
api.go
3
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user