diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 20:26:13 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-12 20:26:13 +0100 |
| commit | 4171c2204fb43f5d7483b8e42432519b69bdef1f (patch) | |
| tree | b40ea138458880aa09c791eb2717f4f5daba700e /src/loaders/pleroma.ts | |
| parent | 6574383b53da66473013512762761862d26e686e (diff) | |
Add author to rss
Diffstat (limited to 'src/loaders/pleroma.ts')
| -rw-r--r-- | src/loaders/pleroma.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/loaders/pleroma.ts b/src/loaders/pleroma.ts index b2c9f81..6b5b2f5 100644 --- a/src/loaders/pleroma.ts +++ b/src/loaders/pleroma.ts @@ -690,6 +690,14 @@ export function pleromaLoader(config: PleromaFeedConfig): Loader { const title = extractTitle(cleanedContent); + // Extract author information from status account + const author = { + username: status.account.username, + displayName: status.account.display_name || undefined, + acct: status.account.acct, + url: status.account.url || undefined, + }; + // Create note entry store.set({ id: `pleroma-${postId}`, @@ -699,6 +707,7 @@ export function pleromaLoader(config: PleromaFeedConfig): Loader { cleanedContent.substring(0, 160) + (cleanedContent.length > 160 ? "..." : ""), publishDate: new Date(status.created_at), sourceUrl, + author, attachments, }, body: cleanedContent, |
