aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-28 21:03:46 -0800
committerFChannel <=>2021-01-28 21:03:46 -0800
commit74f5fb1e96e4c18d87ffe6838f4ab448c184ccff (patch)
tree288ec698036a0c47799e416047fdb902f5d63e1c /client.go
parente358eb07ec4ce873f750c0b75d7b23df4da2fbb8 (diff)
quote bug fix
Diffstat (limited to 'client.go')
-rw-r--r--client.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/client.go b/client.go
index 4683f27..5b183c2 100644
--- a/client.go
+++ b/client.go
@@ -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
}