mirror of
https://git.macaw.me/skunky/devianter.git
synced 2025-04-28 12:05:07 +03:00
ошибки
This commit is contained in:
parent
4487cdcbe9
commit
b3c99749f1
5 changed files with 46 additions and 31 deletions
|
@ -35,9 +35,9 @@ type Comments struct {
|
|||
}
|
||||
|
||||
// 1 - комментарии поста; 4 - комментарии на стене группы или пользователя
|
||||
func GetComments(postid string, cursor string, page int, typ int) (cmmts Comments) {
|
||||
func GetComments(postid string, cursor string, page int, typ int) (cmmts Comments, err Error) {
|
||||
for x := 0; x <= page; x++ {
|
||||
ujson(
|
||||
err = ujson(
|
||||
"dashared/comments/thread?typeid="+strconv.Itoa(typ)+
|
||||
"&itemid="+postid+"&maxdepth=1000&order=newest"+
|
||||
"&limit=50&cursor="+url.QueryEscape(cursor),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue