diff --git a/lib/resolve-author.js b/lib/resolve-author.js index 051a5ef..cfdd9f6 100644 --- a/lib/resolve-author.js +++ b/lib/resolve-author.js @@ -92,8 +92,8 @@ export async function resolveAuthor( // Strategy 2: Use author URL from timeline or notifications if (collections) { - const ap_timeline = collections.get("ap_timeline"); - const ap_notifications = collections.get("ap_notifications"); + const ap_timeline = typeof collections.get === "function" ? collections.get("ap_timeline") : collections.ap_timeline; + const ap_notifications = typeof collections.get === "function" ? collections.get("ap_notifications") : collections.ap_notifications; // Search timeline by both uid (canonical) and url (display) let authorUrl = null;