#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 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.