#296 The outbox page next query is wrong

Отворени
отворен преди 1 година от osapon · 0 коментара
osapon коментира преди 1 година

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.
Впишете се за да се присъедините към разговора.
Няма етап
Няма изпълнител
1 участника
Зареждане...
Отказ
Запис
Все още няма съдържание.