#296 The outbox page next query is wrong

開啟中
osapon1 年之前創建 · 0 條評論

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 參與者
正在加載...
取消
保存
尚未有任何內容