diff options
Diffstat (limited to 'system/api/handlers.go')
-rw-r--r-- | system/api/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/api/handlers.go b/system/api/handlers.go index 9e9fbb6..a63e649 100644 --- a/system/api/handlers.go +++ b/system/api/handlers.go @@ -49,7 +49,7 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { offset, err := strconv.Atoi(q.Get("offset")) // int: multiplier of count for pagination (0 default) if err != nil { if q.Get("offset") == "" { - count = 0 + offset = 0 } else { res.WriteHeader(http.StatusInternalServerError) return |