From b3c99749f133abf6c04506135c2e4e7567da5254 Mon Sep 17 00:00:00 2001 From: lost+skunk Date: Wed, 4 Sep 2024 20:18:39 +0300 Subject: ошибки MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comments.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'comments.go') 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), -- cgit v1.2.3