@rmdes/indiekit-endpoint-activitypub 2.0.29 → 2.0.30

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/assets/reader.css CHANGED
@@ -15,14 +15,15 @@
15
15
  }
16
16
 
17
17
  .ap-lookup__input {
18
- flex: 1;
19
- padding: var(--space-s) var(--space-m);
20
18
  border: var(--border-width-thin) solid var(--color-outline);
21
19
  border-radius: var(--border-radius-small);
22
20
  background: var(--color-offset);
21
+ box-sizing: border-box;
23
22
  color: var(--color-on-background);
24
- font-size: var(--font-size-m);
25
23
  font-family: inherit;
24
+ font-size: var(--font-size-m);
25
+ padding: var(--space-s) var(--space-m);
26
+ width: 100%;
26
27
  }
27
28
 
28
29
  .ap-lookup__input::placeholder {
@@ -1784,10 +1785,11 @@
1784
1785
  .ap-explore-form__input {
1785
1786
  border: var(--border-width-thin) solid var(--color-outline);
1786
1787
  border-radius: var(--border-radius-small);
1787
- flex: 1;
1788
+ box-sizing: border-box;
1788
1789
  font-size: var(--font-size-base);
1789
1790
  min-width: 0;
1790
1791
  padding: var(--space-xs) var(--space-s);
1792
+ width: 100%;
1791
1793
  }
1792
1794
 
1793
1795
  .ap-explore-form__scope {
package/index.js CHANGED
@@ -1047,6 +1047,29 @@ export default class ActivityPubEndpoint {
1047
1047
  this._federation = federation;
1048
1048
  this._fedifyMiddleware = createFedifyMiddleware(federation, () => ({}));
1049
1049
 
1050
+ // Expose signed avatar resolver for cross-plugin use (e.g., conversations backfill)
1051
+ Indiekit.config.application.resolveActorAvatar = async (actorUrl) => {
1052
+ try {
1053
+ const handle = this.options.actor.handle;
1054
+ const ctx = this._federation.createContext(
1055
+ new URL(this._publicationUrl),
1056
+ { handle, publicationUrl: this._publicationUrl },
1057
+ );
1058
+ const documentLoader = await ctx.getDocumentLoader({
1059
+ identifier: handle,
1060
+ });
1061
+ const actor = await ctx.lookupObject(new URL(actorUrl), {
1062
+ documentLoader,
1063
+ });
1064
+ if (!actor) return "";
1065
+ const { extractActorInfo } = await import("./lib/timeline-store.js");
1066
+ const info = await extractActorInfo(actor, { documentLoader });
1067
+ return info.photo || "";
1068
+ } catch {
1069
+ return "";
1070
+ }
1071
+ };
1072
+
1050
1073
  // Register as endpoint (mounts routesPublic, routesWellKnown, routes)
1051
1074
  Indiekit.addEndpoint(this);
1052
1075
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmdes/indiekit-endpoint-activitypub",
3
- "version": "2.0.29",
3
+ "version": "2.0.30",
4
4
  "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
5
5
  "keywords": [
6
6
  "indiekit",