diff options
author | FChannel <=> | 2021-01-28 21:03:46 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 21:03:46 -0800 |
commit | 74f5fb1e96e4c18d87ffe6838f4ab448c184ccff (patch) | |
tree | 288ec698036a0c47799e416047fdb902f5d63e1c /client.go | |
parent | e358eb07ec4ce873f750c0b75d7b23df4da2fbb8 (diff) |
quote bug fix
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -159,8 +159,6 @@ func OutboxGet(w http.ResponseWriter, r *http.Request, db *sql.DB, collection Co DeleteTombstonePosts(&mergeCollection) sort.Sort(ObjectBaseSortDesc(mergeCollection.OrderedItems)) - - returnData.Boards = GetBoardCollection(db) offset := 8 @@ -173,7 +171,6 @@ func OutboxGet(w http.ResponseWriter, r *http.Request, db *sql.DB, collection Co } } - for i, e := range returnData.Posts { var replies []ObjectBase for i := 0; i < 5; i++ { @@ -190,6 +187,8 @@ func OutboxGet(w http.ResponseWriter, r *http.Request, db *sql.DB, collection Co orderedReplies = append(orderedReplies, replies[cur]) } } + + returnData.Posts[i].Replies.TotalItems = len(returnData.Posts[i].Replies.OrderedItems) returnData.Posts[i].Replies.OrderedItems = orderedReplies } |