aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index bfc2846..fec34f0 100644
--- a/main.go
+++ b/main.go
@@ -175,7 +175,10 @@ func main() {
return
}
- collection, valid := WantToServe(db, actor.Name)
+ postNum := strings.Replace(r.URL.EscapedPath(), "/" + actor.Name + "/", "", 1)
+
+ page, _ := strconv.Atoi(postNum)
+ collection, valid := WantToServePage(db, actor.Name, page)
if valid {
OutboxGet(w, r, db, collection)
}