mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
feat: add Reply content/targetUrl fields, fix followers card photo crash
- inbox-listeners.js: Store `targetUrl` (inReplyTo) and `content` (HTML) on Reply activities for the conversations plugin AP adapter - activitypub-followers.njk: Fix photo property name (`src` → `url`) to match the card component's expected interface, fixing TypeError crash on followers page when avatars are present - Bump to v1.0.4
This commit is contained in:
@@ -170,12 +170,17 @@ export function registerInboxListeners(inboxChain, options) {
|
||||
actorObj?.preferredUsername?.toString() ||
|
||||
actorUrl;
|
||||
|
||||
// Extract reply content (HTML)
|
||||
const content = object.content?.toString() || "";
|
||||
|
||||
await logActivity(collections, storeRawActivities, {
|
||||
direction: "inbound",
|
||||
type: "Reply",
|
||||
actorUrl,
|
||||
actorName,
|
||||
objectUrl: object.id?.href || "",
|
||||
targetUrl: inReplyTo,
|
||||
content,
|
||||
summary: `${actorName} replied to ${inReplyTo}`,
|
||||
});
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@rmdes/indiekit-endpoint-activitypub",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
|
||||
"keywords": [
|
||||
"indiekit",
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
{{ card({
|
||||
title: follower.name or follower.handle or follower.actorUrl,
|
||||
url: follower.actorUrl,
|
||||
photo: { src: follower.avatar, alt: follower.name } if follower.avatar,
|
||||
photo: { url: follower.avatar, alt: follower.name } if follower.avatar,
|
||||
description: { text: "@" + follower.handle if follower.handle },
|
||||
published: follower.followedAt
|
||||
}) }}
|
||||
|
||||
Reference in New Issue
Block a user