#296 The outbox page next query is wrong

Öppen
öppnade 1 år sedan av osapon · 0 kommentarer
osapon kommenterad 1 år sedan

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.
Logga in för att delta i denna konversation.
Ingen Milsten
Ingen förvärvare
1 Deltagare
Laddar...
Avbryt
Spara
Det finns inget innehåll än.