#296 The outbox page next query is wrong

Open
opened 1 year ago by osapon · 0 comments
osapon commented 1 year ago

When a page query is attached to the outbox, the URL in next is incorrect.

https://example.com/user/1/outbox.json

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1"
  ],
  "id": "https://example.com/user/1/outbox.json",
  "type": "OrderedCollection",
  "totalItems": 30,
  "first": "https://example.com/user/1/outbox.json?page=1"
}

first is right.

https://example.com/user/1/outbox.json?page=1

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    "https://w3id.org/security/v1"
  ],
  "id": "https://example.com/user/1/outbox.json?page=1",
  "type": "OrderedCollectionPage",
/*  */
  "partOf": "https://example.com/user/1/outbox.json",
  "next": "https://example.com/user/1/outbox.jsonpage=2"
}

The next is incorrect, it cannot be acquired after this.

When a page query is attached to the outbox, the URL in next is incorrect. https://example.com/user/1/outbox.json ``` { "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" ], "id": "https://example.com/user/1/outbox.json", "type": "OrderedCollection", "totalItems": 30, "first": "https://example.com/user/1/outbox.json?page=1" } ``` first is right. https://example.com/user/1/outbox.json?page=1 ``` { "@context": [ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1" ], "id": "https://example.com/user/1/outbox.json?page=1", "type": "OrderedCollectionPage", /* */ "partOf": "https://example.com/user/1/outbox.json", "next": "https://example.com/user/1/outbox.jsonpage=2" } ``` The next is incorrect, it cannot be acquired after this.
Sign in to join this conversation.
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.