@rmdes/indiekit-endpoint-conversations 2.1.5 → 2.1.6
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.
- package/lib/polling/scheduler.js +13 -1
- package/package.json +1 -1
package/lib/polling/scheduler.js
CHANGED
|
@@ -175,7 +175,19 @@ async function backfillMissingAvatars(indiekit, stateCollection) {
|
|
|
175
175
|
} catch { /* ignore */ }
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
// Strategy
|
|
178
|
+
// Strategy 4a: Use AP endpoint's signed fetch (handles Authorized Fetch servers)
|
|
179
|
+
if (!photo) {
|
|
180
|
+
const resolveAvatar =
|
|
181
|
+
indiekit.config?.application?.resolveActorAvatar ||
|
|
182
|
+
indiekit.resolveActorAvatar;
|
|
183
|
+
if (resolveAvatar) {
|
|
184
|
+
try {
|
|
185
|
+
photo = await resolveAvatar(actorUrl);
|
|
186
|
+
} catch { /* ignore */ }
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Strategy 4b: Plain fetch fallback (AP endpoint not installed)
|
|
179
191
|
if (!photo) {
|
|
180
192
|
try {
|
|
181
193
|
const resp = await fetch(actorUrl, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmdes/indiekit-endpoint-conversations",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Conversation aggregation endpoint for Indiekit. Backend enrichment service that polls Mastodon/Bluesky notifications and serves JF2-compatible data for the interactions page.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indiekit",
|