diff options
| author | lost+skunk <[email protected]> | 2024-09-04 20:18:39 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-09-04 20:18:39 +0300 |
| commit | b3c99749f133abf6c04506135c2e4e7567da5254 (patch) | |
| tree | 2dd1abd4967eae3d151eff30404ab28ffd7054b1 /comments.go | |
| parent | 4487cdcbe9ed2ad4bc661c04600336505054177c (diff) | |
| download | devianter-b3c99749f133abf6c04506135c2e4e7567da5254.tar.gz devianter-b3c99749f133abf6c04506135c2e4e7567da5254.tar.bz2 devianter-b3c99749f133abf6c04506135c2e4e7567da5254.zip | |
ошибки
Diffstat (limited to 'comments.go')
| -rw-r--r-- | comments.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comments.go b/comments.go index 24d2d53..1bb1f99 100644 --- a/comments.go +++ b/comments.go @@ -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), |
