@rmdes/indiekit-endpoint-activitypub 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -49,8 +49,8 @@ export function serializeStatus(item, { baseUrl, favouritedIds, rebloggedIds, bo
|
|
|
49
49
|
|
|
50
50
|
// Use published-based cursor as the status ID so pagination cursors
|
|
51
51
|
// (max_id/min_id) sort chronologically, not by insertion order.
|
|
52
|
-
const
|
|
53
|
-
const id = encodeCursor(
|
|
52
|
+
const cursorDate = item.published || item.createdAt || item.boostedAt;
|
|
53
|
+
const id = encodeCursor(cursorDate) || item._id.toString();
|
|
54
54
|
const uid = item.uid || "";
|
|
55
55
|
const url = item.url || uid;
|
|
56
56
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indiekit",
|