Changeset 46a30f0 in Klonkt


Ignore:
Timestamp:
07/26/2026 08:35:57 AM (6 weeks ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
a677616
Parents:
af6e085
Message:

Inbox-read serveert shaer:author + shaer:booster voor een byline op elke kaart

De client had alleen attributedTo (de kale actor-URI), dus gewone kaarten hadden
geen auteur-header (alleen de quote-kaart, want die was geresolved). Klonkt heeft
de weergavenaam/handle/avatar al per timeline-rij (author_name/handle/icon/url);
die serveren we nu als shaer:author, plus shaer:booster (reblog_*) voor een
X-boosted-regel. Geen self-heal nodig: het komt uit bestaande kolommen.

Changed files:
src/routes/activitypub.js

  • inbox-read object: shaer:author en shaer:booster toegevoegd

-robo
Co-Authored-By: Claude Opus 4.8 <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/activitypub.js

    raf6e085 r46a30f0  
    174174      // note has no quote or the quoted post could not be resolved.
    175175      'shaer:quote': AP.timelineQuote(t.quote_json),
     176      // The post author's display info (name / @handle / avatar), so every card
     177      // gets a byline header like the quote card. attributedTo stays the bare
     178      // actor URI; this is the resolved presentation Klonkt already stored.
     179      'shaer:author': (t.author_name || t.author_handle || t.author_icon) ? {
     180        name: t.author_name || undefined, handle: t.author_handle || undefined,
     181        icon: t.author_icon || undefined, url: t.author_url || undefined,
     182      } : undefined,
     183      // When a followed account boosted this, who did ("X boosted"). Omitted for
     184      // ordinary posts.
     185      'shaer:booster': (t.reblog_name || t.reblog_handle || t.reblog_icon) ? {
     186        name: t.reblog_name || undefined, handle: t.reblog_handle || undefined,
     187        icon: t.reblog_icon || undefined,
     188      } : undefined,
    176189    },
    177190  }));
Note: See TracChangeset for help on using the changeset viewer.