@rmdes/indiekit-endpoint-activitypub 3.6.9 → 3.7.0
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.
|
@@ -567,8 +567,17 @@ async function findTimelineItemById(collection, id) {
|
|
|
567
567
|
// Try cursor-based lookup first (published date from ms-since-epoch)
|
|
568
568
|
const publishedDate = decodeCursor(id);
|
|
569
569
|
if (publishedDate) {
|
|
570
|
-
|
|
570
|
+
// Try exact match first (with .000Z suffix from toISOString)
|
|
571
|
+
let item = await collection.findOne({ published: publishedDate });
|
|
571
572
|
if (item) return item;
|
|
573
|
+
|
|
574
|
+
// Try without milliseconds — stored dates often lack .000Z
|
|
575
|
+
// e.g., "2026-03-21T15:33:50Z" vs "2026-03-21T15:33:50.000Z"
|
|
576
|
+
const withoutMs = publishedDate.replace(/\.000Z$/, "Z");
|
|
577
|
+
if (withoutMs !== publishedDate) {
|
|
578
|
+
item = await collection.findOne({ published: withoutMs });
|
|
579
|
+
if (item) return item;
|
|
580
|
+
}
|
|
572
581
|
}
|
|
573
582
|
|
|
574
583
|
// Fall back to ObjectId lookup (legacy IDs)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-activitypub",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
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",
|