@geekity/cms 0.42.1 → 0.43.0
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/admin/pages/federation/followers.njk +1 -1
- package/admin/static/editor.js +22 -21
- package/dist/admin/admin-bar.d.ts +2 -3
- package/dist/admin/admin-bar.d.ts.map +1 -1
- package/dist/admin/admin-bar.js +4 -5
- package/dist/admin/admin-bar.js.map +1 -1
- package/dist/admin/app-activity.d.ts +1 -1
- package/dist/admin/appearance.d.ts +5 -5
- package/dist/admin/appearance.js +5 -5
- package/dist/admin/comments.d.ts +3 -3
- package/dist/admin/comments.js +2 -2
- package/dist/admin/comments.js.map +1 -1
- package/dist/admin/connected-apps.d.ts +1 -1
- package/dist/admin/connected-apps.js +1 -1
- package/dist/admin/credentials.d.ts +3 -3
- package/dist/admin/credentials.js +3 -3
- package/dist/admin/dashboard.js +2 -2
- package/dist/admin/dashboard.js.map +1 -1
- package/dist/admin/documents.d.ts +4 -4
- package/dist/admin/documents.d.ts.map +1 -1
- package/dist/admin/documents.js +150 -144
- package/dist/admin/documents.js.map +1 -1
- package/dist/admin/editor-actions.d.ts +1 -1
- package/dist/admin/editor-actions.js +1 -1
- package/dist/admin/federation.d.ts +11 -11
- package/dist/admin/federation.d.ts.map +1 -1
- package/dist/admin/federation.js +10 -10
- package/dist/admin/flash.d.ts +8 -0
- package/dist/admin/flash.d.ts.map +1 -1
- package/dist/admin/flash.js +11 -0
- package/dist/admin/flash.js.map +1 -1
- package/dist/admin/indieauth-consent.d.ts +1 -1
- package/dist/admin/indieauth-consent.js +1 -1
- package/dist/admin/legacy-migrations.d.ts +20 -19
- package/dist/admin/legacy-migrations.d.ts.map +1 -1
- package/dist/admin/legacy-migrations.js +14 -13
- package/dist/admin/legacy-migrations.js.map +1 -1
- package/dist/admin/list-indent.d.ts +19 -0
- package/dist/admin/list-indent.d.ts.map +1 -0
- package/dist/admin/list-indent.js +73 -0
- package/dist/admin/list-indent.js.map +1 -0
- package/dist/admin/media.js +1 -1
- package/dist/admin/menu.d.ts +1 -1
- package/dist/admin/menu.js +4 -4
- package/dist/admin/menu.js.map +1 -1
- package/dist/admin/messages.d.ts +2 -2
- package/dist/admin/messages.js +2 -2
- package/dist/admin/navigation.d.ts +3 -3
- package/dist/admin/navigation.js +3 -3
- package/dist/admin/personal-data.d.ts +1 -1
- package/dist/admin/personal-data.js +1 -1
- package/dist/admin/plugins.d.ts +1 -1
- package/dist/admin/plugins.js +1 -1
- package/dist/admin/preview.js +3 -3
- package/dist/admin/preview.js.map +1 -1
- package/dist/admin/recovery.d.ts +1 -1
- package/dist/admin/recovery.js +1 -1
- package/dist/admin/routes.d.ts +3 -3
- package/dist/admin/routes.js +14 -14
- package/dist/admin/routes.js.map +1 -1
- package/dist/admin/settings-discussion.d.ts +3 -3
- package/dist/admin/settings-discussion.js +3 -3
- package/dist/admin/settings-federation.d.ts +2 -2
- package/dist/admin/settings-federation.js +5 -5
- package/dist/admin/settings-federation.js.map +1 -1
- package/dist/admin/settings-general.d.ts +1 -1
- package/dist/admin/settings-general.js +2 -2
- package/dist/admin/settings-general.js.map +1 -1
- package/dist/admin/settings-page.d.ts +2 -2
- package/dist/admin/settings-page.js +1 -1
- package/dist/admin/settings-pages.d.ts +1 -1
- package/dist/admin/settings-pages.js +1 -1
- package/dist/admin/settings-reading.d.ts +2 -2
- package/dist/admin/settings-reading.js +2 -2
- package/dist/admin/syndication-targets.d.ts +2 -2
- package/dist/admin/syndication-targets.js +2 -2
- package/dist/admin/taxonomy.d.ts +4 -4
- package/dist/admin/taxonomy.js +4 -4
- package/dist/admin/templates.d.ts +2 -2
- package/dist/admin/templates.js +2 -2
- package/dist/admin/tools.d.ts +1 -1
- package/dist/admin/tools.js +1 -1
- package/dist/admin/users.d.ts +0 -159
- package/dist/admin/users.d.ts.map +1 -1
- package/dist/admin/users.js +204 -498
- package/dist/admin/users.js.map +1 -1
- package/dist/avatars/avatars.d.ts +2 -2
- package/dist/avatars/avatars.js +2 -2
- package/dist/cache.d.ts +1 -1
- package/dist/cache.js +1 -1
- package/dist/cli/args.d.ts +20 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +138 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/commands.d.ts +10 -0
- package/dist/cli/commands.d.ts.map +1 -0
- package/dist/cli/commands.js +261 -0
- package/dist/cli/commands.js.map +1 -0
- package/dist/cli/database-in-use.d.ts +9 -0
- package/dist/cli/database-in-use.d.ts.map +1 -0
- package/dist/cli/database-in-use.js +38 -0
- package/dist/cli/database-in-use.js.map +1 -0
- package/dist/cli/dev-mode.d.ts +3 -0
- package/dist/cli/dev-mode.d.ts.map +1 -0
- package/dist/cli/dev-mode.js +31 -0
- package/dist/cli/dev-mode.js.map +1 -0
- package/dist/cli/export.d.ts +3 -0
- package/dist/cli/export.d.ts.map +1 -0
- package/dist/cli/export.js +53 -0
- package/dist/cli/export.js.map +1 -0
- package/dist/cli/format.d.ts +3 -0
- package/dist/cli/format.d.ts.map +1 -0
- package/dist/cli/format.js +10 -0
- package/dist/cli/format.js.map +1 -0
- package/dist/cli/gemini.d.ts +3 -0
- package/dist/cli/gemini.d.ts.map +1 -0
- package/dist/cli/gemini.js +34 -0
- package/dist/cli/gemini.js.map +1 -0
- package/dist/cli/help.d.ts +2 -0
- package/dist/cli/help.d.ts.map +1 -0
- package/dist/cli/help.js +111 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/import.d.ts +3 -0
- package/dist/cli/import.d.ts.map +1 -0
- package/dist/cli/import.js +84 -0
- package/dist/cli/import.js.map +1 -0
- package/dist/cli/init.d.ts +3 -0
- package/dist/cli/init.d.ts.map +1 -0
- package/dist/cli/init.js +21 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/maintenance.d.ts +3 -0
- package/dist/cli/maintenance.d.ts.map +1 -0
- package/dist/cli/maintenance.js +57 -0
- package/dist/cli/maintenance.js.map +1 -0
- package/dist/cli/options.d.ts +16 -0
- package/dist/cli/options.d.ts.map +1 -0
- package/dist/cli/options.js +27 -0
- package/dist/cli/options.js.map +1 -0
- package/dist/cli/password.d.ts +21 -0
- package/dist/cli/password.d.ts.map +1 -0
- package/dist/cli/password.js +52 -0
- package/dist/cli/password.js.map +1 -0
- package/dist/cli/plugin-commands.d.ts +11 -0
- package/dist/cli/plugin-commands.d.ts.map +1 -0
- package/dist/cli/plugin-commands.js +79 -0
- package/dist/cli/plugin-commands.js.map +1 -0
- package/dist/cli/plugin-folder.d.ts +3 -0
- package/dist/cli/plugin-folder.d.ts.map +1 -0
- package/dist/cli/plugin-folder.js +93 -0
- package/dist/cli/plugin-folder.js.map +1 -0
- package/dist/cli/rebuild.d.ts +5 -0
- package/dist/cli/rebuild.d.ts.map +1 -0
- package/dist/cli/rebuild.js +44 -0
- package/dist/cli/rebuild.js.map +1 -0
- package/dist/cli/resend.d.ts +3 -0
- package/dist/cli/resend.d.ts.map +1 -0
- package/dist/cli/resend.js +36 -0
- package/dist/cli/resend.js.map +1 -0
- package/dist/cli/run-job.d.ts +5 -0
- package/dist/cli/run-job.d.ts.map +1 -0
- package/dist/cli/run-job.js +29 -0
- package/dist/cli/run-job.js.map +1 -0
- package/dist/cli/serve.d.ts +3 -0
- package/dist/cli/serve.d.ts.map +1 -0
- package/dist/cli/serve.js +65 -0
- package/dist/cli/serve.js.map +1 -0
- package/dist/cli/settings.d.ts +5 -0
- package/dist/cli/settings.d.ts.map +1 -0
- package/dist/cli/settings.js +144 -0
- package/dist/cli/settings.js.map +1 -0
- package/dist/cli/site-plugins.d.ts +5 -0
- package/dist/cli/site-plugins.d.ts.map +1 -0
- package/dist/cli/site-plugins.js +7 -0
- package/dist/cli/site-plugins.js.map +1 -0
- package/dist/cli/strip-metadata.d.ts +3 -0
- package/dist/cli/strip-metadata.d.ts.map +1 -0
- package/dist/cli/strip-metadata.js +20 -0
- package/dist/cli/strip-metadata.js.map +1 -0
- package/dist/cli/sync.d.ts +3 -0
- package/dist/cli/sync.d.ts.map +1 -0
- package/dist/cli/sync.js +22 -0
- package/dist/cli/sync.js.map +1 -0
- package/dist/cli/user.d.ts +3 -0
- package/dist/cli/user.d.ts.map +1 -0
- package/dist/cli/user.js +54 -0
- package/dist/cli/user.js.map +1 -0
- package/dist/cli.d.ts +0 -62
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +6 -1566
- package/dist/cli.js.map +1 -1
- package/dist/cms/app.js +10 -10
- package/dist/cms/app.js.map +1 -1
- package/dist/cms/boot.js +5 -5
- package/dist/cms/boot.js.map +1 -1
- package/dist/cms/create.d.ts +17 -17
- package/dist/cms/create.d.ts.map +1 -1
- package/dist/cms/create.js +1 -1
- package/dist/cms/create.js.map +1 -1
- package/dist/cms/server-error.d.ts +1 -1
- package/dist/cms/server-error.js +1 -1
- package/dist/cms/services.d.ts.map +1 -1
- package/dist/cms/services.js +33 -16
- package/dist/cms/services.js.map +1 -1
- package/dist/comments/akismet.d.ts +4 -4
- package/dist/comments/akismet.js +6 -6
- package/dist/comments/akismet.js.map +1 -1
- package/dist/comments/conversation.d.ts +29 -29
- package/dist/comments/conversation.d.ts.map +1 -1
- package/dist/comments/conversation.js +2 -2
- package/dist/comments/conversation.js.map +1 -1
- package/dist/comments/form.d.ts +3 -3
- package/dist/comments/form.d.ts.map +1 -1
- package/dist/comments/intake.d.ts +4 -4
- package/dist/comments/intake.d.ts.map +1 -1
- package/dist/comments/intake.js +1 -1
- package/dist/comments/migrations.d.ts +3 -3
- package/dist/comments/migrations.js +3 -3
- package/dist/comments/moderate.d.ts +2 -2
- package/dist/comments/moderate.js +2 -2
- package/dist/comments/page-form.d.ts +1 -1
- package/dist/comments/page-form.js +1 -1
- package/dist/comments/records.d.ts +9 -9
- package/dist/comments/records.d.ts.map +1 -1
- package/dist/comments/records.js +11 -10
- package/dist/comments/records.js.map +1 -1
- package/dist/comments/reply-notices.d.ts +2 -2
- package/dist/comments/reply-post.d.ts +2 -2
- package/dist/comments/submission.d.ts +8 -8
- package/dist/comments/submission.d.ts.map +1 -1
- package/dist/comments/submission.js +9 -9
- package/dist/comments/submission.js.map +1 -1
- package/dist/config.d.ts +27 -27
- package/dist/config.js +3 -3
- package/dist/contact/index.d.ts +1 -1
- package/dist/contact/index.js +1 -1
- package/dist/contact/records.d.ts +7 -7
- package/dist/contact/records.js +7 -7
- package/dist/content/alt-text.d.ts +2 -2
- package/dist/content/alt-text.js +2 -2
- package/dist/content/authors.d.ts +6 -6
- package/dist/content/authors.d.ts.map +1 -1
- package/dist/content/authors.js +6 -6
- package/dist/content/authors.js.map +1 -1
- package/dist/content/citation.d.ts +1 -1
- package/dist/content/content-tree.d.ts +5 -0
- package/dist/content/content-tree.d.ts.map +1 -0
- package/dist/content/content-tree.js +54 -0
- package/dist/content/content-tree.js.map +1 -0
- package/dist/content/content-watcher.d.ts +15 -0
- package/dist/content/content-watcher.d.ts.map +1 -0
- package/dist/content/content-watcher.js +104 -0
- package/dist/content/content-watcher.js.map +1 -0
- package/dist/content/document-form.d.ts +25 -24
- package/dist/content/document-form.d.ts.map +1 -1
- package/dist/content/document-form.js +7 -7
- package/dist/content/document-form.js.map +1 -1
- package/dist/content/document-kind.d.ts +6 -6
- package/dist/content/document.d.ts +1 -1
- package/dist/content/enclosure-form.js +1 -1
- package/dist/content/enclosure.js +1 -1
- package/dist/content/event-form.d.ts +2 -2
- package/dist/content/event.d.ts +3 -3
- package/dist/content/event.js +3 -3
- package/dist/content/guids.d.ts +6 -6
- package/dist/content/guids.d.ts.map +1 -1
- package/dist/content/guids.js +7 -7
- package/dist/content/guids.js.map +1 -1
- package/dist/content/handles.d.ts +1 -1
- package/dist/content/handles.js +1 -1
- package/dist/content/html-to-markdown.js +2 -2
- package/dist/content/language.d.ts +1 -1
- package/dist/content/language.js +1 -1
- package/dist/content/locale.d.ts +1 -1
- package/dist/content/locale.js +1 -1
- package/dist/content/markdown.d.ts +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/parser.d.ts +1 -1
- package/dist/content/parser.d.ts.map +1 -1
- package/dist/content/permalinks.d.ts +4 -4
- package/dist/content/permalinks.js +4 -4
- package/dist/content/photo-form.js +2 -2
- package/dist/content/photo.d.ts +2 -2
- package/dist/content/photo.js +1 -1
- package/dist/content/pinned.d.ts +3 -3
- package/dist/content/pinned.js +3 -3
- package/dist/content/post-fields.js +2 -2
- package/dist/content/post-fields.js.map +1 -1
- package/dist/content/post-type.d.ts +4 -4
- package/dist/content/post-type.js +1 -1
- package/dist/content/reconcile.d.ts +15 -0
- package/dist/content/reconcile.d.ts.map +1 -0
- package/dist/content/reconcile.js +106 -0
- package/dist/content/reconcile.js.map +1 -0
- package/dist/content/redirects.d.ts +2 -3
- package/dist/content/redirects.d.ts.map +1 -1
- package/dist/content/redirects.js +2 -3
- package/dist/content/redirects.js.map +1 -1
- package/dist/content/rsvp.d.ts +1 -1
- package/dist/content/rsvp.js +1 -1
- package/dist/content/sanitize.js +1 -1
- package/dist/content/save.d.ts +3 -3
- package/dist/content/save.js +4 -4
- package/dist/content/scan.d.ts +12 -0
- package/dist/content/scan.d.ts.map +1 -0
- package/dist/content/scan.js +58 -0
- package/dist/content/scan.js.map +1 -0
- package/dist/content/search.d.ts +3 -3
- package/dist/content/search.js +3 -3
- package/dist/content/served.d.ts +5 -5
- package/dist/content/served.js +4 -4
- package/dist/content/site-links.d.ts +3 -4
- package/dist/content/site-links.d.ts.map +1 -1
- package/dist/content/site-links.js +1 -2
- package/dist/content/site-links.js.map +1 -1
- package/dist/content/sqlite/clauses.d.ts +1 -1
- package/dist/content/sqlite/clauses.js +1 -1
- package/dist/content/sqlite/rows.d.ts +1 -1
- package/dist/content/sqlite/rows.js +1 -1
- package/dist/content/store.d.ts +26 -26
- package/dist/content/sync.d.ts +3 -3
- package/dist/content/sync.d.ts.map +1 -1
- package/dist/content/sync.js +65 -382
- package/dist/content/sync.js.map +1 -1
- package/dist/content/taxonomy.d.ts +9 -8
- package/dist/content/taxonomy.d.ts.map +1 -1
- package/dist/content/taxonomy.js +9 -8
- package/dist/content/taxonomy.js.map +1 -1
- package/dist/content/time.d.ts +1 -1
- package/dist/content/time.js +1 -1
- package/dist/content/trash.d.ts +4 -5
- package/dist/content/trash.d.ts.map +1 -1
- package/dist/content/trash.js +4 -5
- package/dist/content/trash.js.map +1 -1
- package/dist/content/write.d.ts +4 -4
- package/dist/content/write.js +19 -19
- package/dist/content/write.js.map +1 -1
- package/dist/drain.d.ts +1 -1
- package/dist/drain.js +1 -1
- package/dist/federation/actor.d.ts +9 -9
- package/dist/federation/actor.js +10 -10
- package/dist/federation/article.d.ts +14 -14
- package/dist/federation/article.js +27 -27
- package/dist/federation/article.js.map +1 -1
- package/dist/federation/backfill.d.ts +2 -2
- package/dist/federation/backfill.js +2 -2
- package/dist/federation/citations.d.ts +1 -1
- package/dist/federation/citations.js +1 -1
- package/dist/federation/cited-post.d.ts +1 -1
- package/dist/federation/cited-post.js +1 -1
- package/dist/federation/delivery-plan.d.ts +1 -1
- package/dist/federation/delivery.d.ts +3 -3
- package/dist/federation/delivery.d.ts.map +1 -1
- package/dist/federation/delivery.js +25 -15
- package/dist/federation/delivery.js.map +1 -1
- package/dist/federation/federation.d.ts +3 -3
- package/dist/federation/federation.d.ts.map +1 -1
- package/dist/federation/federation.js +7 -8
- package/dist/federation/federation.js.map +1 -1
- package/dist/federation/handles.d.ts +1 -1
- package/dist/federation/handles.js +1 -1
- package/dist/federation/inbox.d.ts +6 -6
- package/dist/federation/inbox.js +9 -9
- package/dist/federation/keys.d.ts +3 -3
- package/dist/federation/keys.js +3 -3
- package/dist/federation/object-ids.d.ts +1 -1
- package/dist/federation/outbox-observer.d.ts +17 -0
- package/dist/federation/outbox-observer.d.ts.map +1 -0
- package/dist/federation/outbox-observer.js +98 -0
- package/dist/federation/outbox-observer.js.map +1 -0
- package/dist/federation/paths.d.ts +8 -8
- package/dist/federation/paths.js +8 -8
- package/dist/federation/profiles.d.ts +2 -3
- package/dist/federation/profiles.d.ts.map +1 -1
- package/dist/federation/profiles.js +2 -3
- package/dist/federation/profiles.js.map +1 -1
- package/dist/federation/quotes.d.ts +1 -1
- package/dist/federation/records.d.ts +24 -24
- package/dist/federation/records.js +23 -23
- package/dist/federation/records.js.map +1 -1
- package/dist/federation/refusals.d.ts +1 -1
- package/dist/federation/relays.d.ts +1 -1
- package/dist/federation/relays.d.ts.map +1 -1
- package/dist/federation/relays.js +38 -13
- package/dist/federation/relays.js.map +1 -1
- package/dist/federation/webfinger.d.ts +2 -2
- package/dist/federation/webfinger.js +2 -2
- package/dist/files/atomic.d.ts +2 -2
- package/dist/files/atomic.js +1 -1
- package/dist/forms/checker.d.ts +2 -2
- package/dist/forms/checker.d.ts.map +1 -1
- package/dist/forms/protection.d.ts +1 -1
- package/dist/forms/protection.js +1 -1
- package/dist/gemini/certificate.js +1 -1
- package/dist/images/markup.d.ts +2 -2
- package/dist/images/variants.d.ts +8 -8
- package/dist/images/variants.js +1 -1
- package/dist/indexnow.d.ts +1 -1
- package/dist/indieauth/grants.d.ts +2 -2
- package/dist/indieauth/identity.d.ts +3 -5
- package/dist/indieauth/identity.d.ts.map +1 -1
- package/dist/indieauth/identity.js +3 -5
- package/dist/indieauth/identity.js.map +1 -1
- package/dist/indieauth/redeem.d.ts +2 -2
- package/dist/indieauth/redeem.js +2 -2
- package/dist/indieauth/request.d.ts +2 -2
- package/dist/indieauth/request.js +2 -2
- package/dist/indieauth/tokens.d.ts +3 -5
- package/dist/indieauth/tokens.d.ts.map +1 -1
- package/dist/indieauth/tokens.js +3 -5
- package/dist/indieauth/tokens.js.map +1 -1
- package/dist/jobs/file-records.d.ts +1 -1
- package/dist/jobs/file-records.js +1 -1
- package/dist/jobs/in-process.d.ts +1 -1
- package/dist/jobs/in-process.js +1 -1
- package/dist/jobs/queue.d.ts +1 -1
- package/dist/jobs/queue.js +1 -1
- package/dist/mail/provider.d.ts +2 -2
- package/dist/mail/provider.js +2 -2
- package/dist/media/library.d.ts +2 -2
- package/dist/media/uploads.js +2 -2
- package/dist/media/uploads.js.map +1 -1
- package/dist/micropub/create.d.ts +1 -1
- package/dist/micropub/endpoint.d.ts +7 -7
- package/dist/micropub/endpoint.js +8 -8
- package/dist/micropub/endpoint.js.map +1 -1
- package/dist/micropub/media.d.ts +4 -4
- package/dist/micropub/media.js +4 -4
- package/dist/micropub/update.d.ts +1 -1
- package/dist/micropub/update.js +1 -1
- package/dist/notifications/comments.d.ts +1 -1
- package/dist/notifications/comments.js +2 -2
- package/dist/notifications/comments.js.map +1 -1
- package/dist/notifications/digest.d.ts +7 -7
- package/dist/notifications/digest.js +7 -7
- package/dist/notifications/mail-service.d.ts +4 -4
- package/dist/notifications/mail-service.d.ts.map +1 -1
- package/dist/notifications/mail-service.js +3 -3
- package/dist/notifications/mail-templates.d.ts +3 -3
- package/dist/notifications/optouts.d.ts +1 -1
- package/dist/notifications/optouts.js +1 -1
- package/dist/notifications/tokens.d.ts +2 -2
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.js +5 -5
- package/dist/plugins/changes.js +2 -2
- package/dist/plugins/folder.d.ts +2 -2
- package/dist/plugins/folder.js +2 -2
- package/dist/plugins/install.d.ts +1 -1
- package/dist/plugins/install.js +1 -1
- package/dist/plugins/registry.d.ts +1 -1
- package/dist/plugins/registry.js +1 -1
- package/dist/plugins/site.d.ts +1 -1
- package/dist/plugins/site.js +1 -1
- package/dist/privacy/erase.d.ts +1 -1
- package/dist/privacy/erase.js +1 -1
- package/dist/privacy/retention.d.ts +2 -2
- package/dist/privacy/retention.js +2 -2
- package/dist/site/admin-paths.d.ts +2 -2
- package/dist/site/admin-paths.js +2 -2
- package/dist/site/authors.d.ts +6 -6
- package/dist/site/authors.js +5 -5
- package/dist/site/dashboard-layout.d.ts +1 -1
- package/dist/site/indexnow-key.js +1 -1
- package/dist/site/namespace.d.ts +1 -1
- package/dist/site/namespace.js +1 -1
- package/dist/site/navigation.d.ts +10 -10
- package/dist/site/navigation.js +10 -10
- package/dist/site/notification-preferences.d.ts +3 -3
- package/dist/site/notification-preferences.js +2 -2
- package/dist/site/retention-policy.d.ts +1 -1
- package/dist/site/retention-policy.js +1 -1
- package/dist/site/users.d.ts +23 -24
- package/dist/site/users.d.ts.map +1 -1
- package/dist/site/users.js +6 -6
- package/dist/site/users.js.map +1 -1
- package/dist/store/admin-store.d.ts +3 -3
- package/dist/store/admin-store.d.ts.map +1 -1
- package/dist/store/comments.d.ts +17 -17
- package/dist/store/comments.d.ts.map +1 -1
- package/dist/store/comments.js +14 -21
- package/dist/store/comments.js.map +1 -1
- package/dist/store/conversation.d.ts +2 -2
- package/dist/store/deliveries.d.ts +13 -5
- package/dist/store/deliveries.d.ts.map +1 -1
- package/dist/store/deliveries.js +18 -16
- package/dist/store/deliveries.js.map +1 -1
- package/dist/store/followers.d.ts +5 -5
- package/dist/store/followers.d.ts.map +1 -1
- package/dist/store/followers.js +7 -10
- package/dist/store/followers.js.map +1 -1
- package/dist/store/inbox-replies.d.ts +4 -4
- package/dist/store/inbox-replies.js +4 -4
- package/dist/store/inbox.d.ts +5 -5
- package/dist/store/inbox.d.ts.map +1 -1
- package/dist/store/inbox.js +21 -34
- package/dist/store/inbox.js.map +1 -1
- package/dist/store/profiles.d.ts +5 -5
- package/dist/store/profiles.d.ts.map +1 -1
- package/dist/store/profiles.js +4 -5
- package/dist/store/profiles.js.map +1 -1
- package/dist/store/relays.d.ts.map +1 -1
- package/dist/store/relays.js +7 -9
- package/dist/store/relays.js.map +1 -1
- package/dist/store/rows.d.ts +6 -20
- package/dist/store/rows.d.ts.map +1 -1
- package/dist/store/rows.js +10 -15
- package/dist/store/rows.js.map +1 -1
- package/dist/store/schema.js +35 -35
- package/dist/store/schema.js.map +1 -1
- package/dist/store/sessions.d.ts +1 -1
- package/dist/store/sessions.d.ts.map +1 -1
- package/dist/store/sessions.js +10 -10
- package/dist/store/sessions.js.map +1 -1
- package/dist/store/state.d.ts.map +1 -1
- package/dist/store/state.js +2 -2
- package/dist/store/state.js.map +1 -1
- package/dist/store/tokens.d.ts +1 -1
- package/dist/store/tokens.d.ts.map +1 -1
- package/dist/store/tokens.js +5 -5
- package/dist/store/tokens.js.map +1 -1
- package/dist/store/webmentions.d.ts +2 -2
- package/dist/store/webmentions.d.ts.map +1 -1
- package/dist/store/webmentions.js +11 -11
- package/dist/store/webmentions.js.map +1 -1
- package/dist/supervisor/plugin-watcher.d.ts +26 -0
- package/dist/supervisor/plugin-watcher.d.ts.map +1 -0
- package/dist/supervisor/plugin-watcher.js +90 -0
- package/dist/supervisor/plugin-watcher.js.map +1 -0
- package/dist/supervisor/primary.d.ts +4 -7
- package/dist/supervisor/primary.d.ts.map +1 -1
- package/dist/supervisor/primary.js +37 -94
- package/dist/supervisor/primary.js.map +1 -1
- package/dist/supervisor/protocol.d.ts +1 -1
- package/dist/supervisor/protocol.js +1 -1
- package/dist/supervisor/reload-queue.d.ts +10 -0
- package/dist/supervisor/reload-queue.d.ts.map +1 -0
- package/dist/supervisor/reload-queue.js +28 -0
- package/dist/supervisor/reload-queue.js.map +1 -0
- package/dist/supervisor/supervision.d.ts +2 -2
- package/dist/supervisor/supervision.js +2 -2
- package/dist/supervisor/worker.d.ts +1 -1
- package/dist/supervisor/worker.js +1 -1
- package/dist/theme/site-data.d.ts +3 -3
- package/dist/theme/site-data.js +2 -2
- package/dist/theme/templates.d.ts +3 -3
- package/dist/theme/templates.js +16 -16
- package/dist/theme/templates.js.map +1 -1
- package/dist/theme/themes.d.ts +11 -13
- package/dist/theme/themes.d.ts.map +1 -1
- package/dist/theme/themes.js +8 -9
- package/dist/theme/themes.js.map +1 -1
- package/dist/web/activity-folding.d.ts +33 -0
- package/dist/web/activity-folding.d.ts.map +1 -0
- package/dist/web/activity-folding.js +238 -0
- package/dist/web/activity-folding.js.map +1 -0
- package/dist/web/archive.d.ts +2 -3
- package/dist/web/archive.d.ts.map +1 -1
- package/dist/web/archive.js +2 -3
- package/dist/web/archive.js.map +1 -1
- package/dist/web/asset-routes.d.ts +1 -1
- package/dist/web/asset-routes.js +1 -1
- package/dist/web/comment-routes.js +2 -2
- package/dist/web/comment-routes.js.map +1 -1
- package/dist/web/compression.d.ts +1 -1
- package/dist/web/compression.js +1 -1
- package/dist/web/context.d.ts +21 -21
- package/dist/web/context.d.ts.map +1 -1
- package/dist/web/context.js +7 -7
- package/dist/web/conversation-context.d.ts +15 -0
- package/dist/web/conversation-context.d.ts.map +1 -0
- package/dist/web/conversation-context.js +2 -0
- package/dist/web/conversation-context.js.map +1 -0
- package/dist/web/conversation-feed.d.ts +18 -0
- package/dist/web/conversation-feed.d.ts.map +1 -0
- package/dist/web/conversation-feed.js +53 -0
- package/dist/web/conversation-feed.js.map +1 -0
- package/dist/web/conversation-gather.d.ts +12 -0
- package/dist/web/conversation-gather.d.ts.map +1 -0
- package/dist/web/conversation-gather.js +189 -0
- package/dist/web/conversation-gather.js.map +1 -0
- package/dist/web/conversation-lookup.d.ts +15 -0
- package/dist/web/conversation-lookup.d.ts.map +1 -0
- package/dist/web/conversation-lookup.js +101 -0
- package/dist/web/conversation-lookup.js.map +1 -0
- package/dist/web/conversation-threads.d.ts +12 -0
- package/dist/web/conversation-threads.d.ts.map +1 -0
- package/dist/web/conversation-threads.js +144 -0
- package/dist/web/conversation-threads.js.map +1 -0
- package/dist/web/conversation.d.ts +25 -61
- package/dist/web/conversation.d.ts.map +1 -1
- package/dist/web/conversation.js +14 -854
- package/dist/web/conversation.js.map +1 -1
- package/dist/web/document-page.js +4 -4
- package/dist/web/document-page.js.map +1 -1
- package/dist/web/document-render.d.ts +9 -0
- package/dist/web/document-render.d.ts.map +1 -0
- package/dist/web/document-render.js +130 -0
- package/dist/web/document-render.js.map +1 -0
- package/dist/web/document-site.d.ts +1 -1
- package/dist/web/document-site.d.ts.map +1 -1
- package/dist/web/document-site.js +1 -1
- package/dist/web/document-site.js.map +1 -1
- package/dist/web/env.d.ts +19 -19
- package/dist/web/env.d.ts.map +1 -1
- package/dist/web/federation-routes.d.ts +2 -2
- package/dist/web/federation-routes.d.ts.map +1 -1
- package/dist/web/federation-routes.js +22 -21
- package/dist/web/federation-routes.js.map +1 -1
- package/dist/web/feed-atom.d.ts +3 -3
- package/dist/web/feed-atom.js +3 -3
- package/dist/web/feed-item.d.ts +15 -16
- package/dist/web/feed-item.d.ts.map +1 -1
- package/dist/web/feed-item.js +1 -1
- package/dist/web/feed-item.js.map +1 -1
- package/dist/web/feed-json.d.ts +4 -4
- package/dist/web/feed-json.d.ts.map +1 -1
- package/dist/web/feed-json.js +2 -2
- package/dist/web/feed-routes.d.ts +3 -3
- package/dist/web/feed-routes.js +4 -4
- package/dist/web/feed-routes.js.map +1 -1
- package/dist/web/feed-rss.d.ts +2 -2
- package/dist/web/feed-rss.js +4 -4
- package/dist/web/feed-rss.js.map +1 -1
- package/dist/web/feed-source.d.ts +5 -5
- package/dist/web/feed-source.d.ts.map +1 -1
- package/dist/web/feed-source.js +2 -2
- package/dist/web/feed-source.js.map +1 -1
- package/dist/web/feed-xml.d.ts +4 -4
- package/dist/web/feed-xml.d.ts.map +1 -1
- package/dist/web/feed-xml.js +4 -4
- package/dist/web/feed-xml.js.map +1 -1
- package/dist/web/font-routes.d.ts +1 -1
- package/dist/web/font-routes.js +1 -1
- package/dist/web/health.d.ts +1 -1
- package/dist/web/index.d.ts +5 -3
- package/dist/web/index.d.ts.map +1 -1
- package/dist/web/index.js +4 -2
- package/dist/web/index.js.map +1 -1
- package/dist/web/indieauth-activity-log.js +1 -1
- package/dist/web/indieauth-bearer.d.ts +2 -2
- package/dist/web/indieauth-discovery.d.ts +12 -12
- package/dist/web/indieauth-discovery.d.ts.map +1 -1
- package/dist/web/indieauth-discovery.js +12 -12
- package/dist/web/indieauth-discovery.js.map +1 -1
- package/dist/web/indieauth-token.d.ts +2 -2
- package/dist/web/indieauth-token.js +2 -2
- package/dist/web/listing-render.d.ts +11 -0
- package/dist/web/listing-render.d.ts.map +1 -0
- package/dist/web/listing-render.js +76 -0
- package/dist/web/listing-render.js.map +1 -0
- package/dist/web/listing-subject.js +1 -1
- package/dist/web/listing-subject.js.map +1 -1
- package/dist/web/llms.d.ts +1 -1
- package/dist/web/llms.js +1 -1
- package/dist/web/maintenance.d.ts +1 -1
- package/dist/web/maintenance.js +1 -1
- package/dist/web/manifest.d.ts +1 -1
- package/dist/web/manifest.js +1 -1
- package/dist/web/markdown-chrome.d.ts +11 -0
- package/dist/web/markdown-chrome.d.ts.map +1 -0
- package/dist/web/markdown-chrome.js +178 -0
- package/dist/web/markdown-chrome.js.map +1 -0
- package/dist/web/markdown-conversation.d.ts +1 -1
- package/dist/web/markdown-conversation.d.ts.map +1 -1
- package/dist/web/markdown-environment.d.ts +10 -0
- package/dist/web/markdown-environment.d.ts.map +1 -0
- package/dist/web/markdown-environment.js +56 -0
- package/dist/web/markdown-environment.js.map +1 -0
- package/dist/web/markdown-representation.d.ts +1 -1
- package/dist/web/markdown-representation.d.ts.map +1 -1
- package/dist/web/markdown-representation.js +2 -2
- package/dist/web/markdown-representation.js.map +1 -1
- package/dist/web/negotiate.d.ts +5 -5
- package/dist/web/negotiate.d.ts.map +1 -1
- package/dist/web/negotiate.js +3 -3
- package/dist/web/negotiate.js.map +1 -1
- package/dist/web/oembed.d.ts +3 -3
- package/dist/web/oembed.js +3 -3
- package/dist/web/opensearch.d.ts +1 -1
- package/dist/web/opensearch.js +1 -1
- package/dist/web/page-context.d.ts +29 -0
- package/dist/web/page-context.d.ts.map +1 -0
- package/dist/web/page-context.js +126 -0
- package/dist/web/page-context.js.map +1 -0
- package/dist/web/page-tags.js +1 -1
- package/dist/web/page-tags.js.map +1 -1
- package/dist/web/paths.d.ts +1 -1
- package/dist/web/paths.js +3 -3
- package/dist/web/plugin-federation.d.ts +1 -1
- package/dist/web/plugin-federation.js +1 -1
- package/dist/web/render-scope.d.ts +20 -0
- package/dist/web/render-scope.d.ts.map +1 -0
- package/dist/web/render-scope.js +36 -0
- package/dist/web/render-scope.js.map +1 -0
- package/dist/web/render.d.ts +21 -363
- package/dist/web/render.d.ts.map +1 -1
- package/dist/web/render.js +46 -899
- package/dist/web/render.js.map +1 -1
- package/dist/web/request.d.ts +1 -1
- package/dist/web/request.js +1 -1
- package/dist/web/robots.d.ts +1 -1
- package/dist/web/robots.js +1 -1
- package/dist/web/routes.js +19 -19
- package/dist/web/routes.js.map +1 -1
- package/dist/web/search.d.ts +1 -1
- package/dist/web/search.js +1 -1
- package/dist/web/session.d.ts +8 -8
- package/dist/web/session.js +8 -8
- package/dist/web/share-image.d.ts +2 -3
- package/dist/web/share-image.d.ts.map +1 -1
- package/dist/web/share-image.js +1 -1
- package/dist/web/share-image.js.map +1 -1
- package/dist/web/site-view.d.ts +2 -2
- package/dist/web/status-pages.d.ts +1 -1
- package/dist/web/status-pages.d.ts.map +1 -1
- package/dist/web/theme-environment.d.ts +14 -0
- package/dist/web/theme-environment.d.ts.map +1 -0
- package/dist/web/theme-environment.js +112 -0
- package/dist/web/theme-environment.js.map +1 -0
- package/dist/web/theme-templates.d.ts +67 -0
- package/dist/web/theme-templates.d.ts.map +1 -0
- package/dist/web/theme-templates.js +65 -0
- package/dist/web/theme-templates.js.map +1 -0
- package/dist/webmention/microformats.d.ts +5 -5
- package/dist/webmention/microformats.d.ts.map +1 -1
- package/dist/webmention/receive.d.ts +7 -7
- package/dist/webmention/receive.d.ts.map +1 -1
- package/dist/webmention/receive.js +4 -4
- package/dist/webmention/receive.js.map +1 -1
- package/dist/webmention/reply-context/oembed.js +1 -1
- package/dist/webmention/reply-context.d.ts +10 -10
- package/dist/webmention/reply-context.d.ts.map +1 -1
- package/dist/webmention/reply-context.js +5 -5
- package/dist/webmention/reply-contexts.d.ts +6 -6
- package/dist/webmention/reply-contexts.d.ts.map +1 -1
- package/dist/webmention/reply-contexts.js +2 -2
- package/dist/webmention/service.d.ts +13 -13
- package/dist/webmention/service.js +9 -9
- package/dist/webmention/syndication.d.ts +6 -6
- package/dist/webmention/syndication.d.ts.map +1 -1
- package/dist/webmention/syndication.js +6 -6
- package/dist/webmention/syndication.js.map +1 -1
- package/package.json +4 -2
|
@@ -25,9 +25,9 @@ export const OUTBOX_PAGE_SIZE = 20;
|
|
|
25
25
|
* Build the site's `Federation` object: one actor per user, their keys, their
|
|
26
26
|
* collections, WebFinger's neighbours and NodeInfo.
|
|
27
27
|
*
|
|
28
|
-
* A post's object is not here — it is its permalink
|
|
28
|
+
* A post's object is not here — it is its permalink, served by
|
|
29
29
|
* the middleware in `web/federation-routes.ts`, which also owns `/.well-known/webfinger`
|
|
30
|
-
*
|
|
30
|
+
* because Fedify's own cannot publish the aliases every user's actor needs.
|
|
31
31
|
*/
|
|
32
32
|
export function createSiteFederation(options) {
|
|
33
33
|
const federation = createFederation({
|
|
@@ -62,7 +62,7 @@ export function createSiteFederation(options) {
|
|
|
62
62
|
.setKeyPairsDispatcher(async (context, identifier) => actorFor(context, identifier) === undefined
|
|
63
63
|
? []
|
|
64
64
|
: await loadActorKeyPairs(context.data.config.dataDir, identifier));
|
|
65
|
-
// No object dispatcher for posts.
|
|
65
|
+
// No object dispatcher for posts. A post's id is its
|
|
66
66
|
// permalink, which Fedify never minted and cannot route: the permalink
|
|
67
67
|
// middleware in `web/federation-routes.ts` answers an ActivityStreams request there, and
|
|
68
68
|
// `isFederatedDocument` is the one rule it and the outbox both read, so they
|
|
@@ -83,7 +83,7 @@ export function createSiteFederation(options) {
|
|
|
83
83
|
return null;
|
|
84
84
|
return quoteAuthorization(context, user, record);
|
|
85
85
|
});
|
|
86
|
-
/** Every stored `author` string that reads as this user
|
|
86
|
+
/** Every stored `author` string that reads as this user. */
|
|
87
87
|
function namesOf(context, user) {
|
|
88
88
|
return authorNames(listUsers(context.data.config.dataDir), user);
|
|
89
89
|
}
|
|
@@ -127,7 +127,7 @@ export function createSiteFederation(options) {
|
|
|
127
127
|
? null
|
|
128
128
|
: lastFollowersCursor(context.data.admin.countFollowers(user.username));
|
|
129
129
|
});
|
|
130
|
-
// Always empty:
|
|
130
|
+
// Always empty: a blog's author follows nobody through this CMS,
|
|
131
131
|
// and the one thing the site does follow — a relay (FEP-ae0c) — is a
|
|
132
132
|
// subscription rather than a relationship anybody reads this collection to
|
|
133
133
|
// learn about.
|
|
@@ -157,14 +157,13 @@ export function createSiteFederation(options) {
|
|
|
157
157
|
// The inbox, personal and shared. Fedify has already verified the signature
|
|
158
158
|
// by the time a listener runs — an unsigned or badly signed delivery never
|
|
159
159
|
// reaches one — so a handler may trust that the activity's actor really sent
|
|
160
|
-
// it. An activity of a type not listed here is answered 202 and dropped
|
|
161
|
-
// which is what doc-4 asks for everything past these.
|
|
160
|
+
// it. An activity of a type not listed here is answered 202 and dropped.
|
|
162
161
|
const inbox = federation
|
|
163
162
|
.setInboxListeners(INBOX_PATH, SHARED_INBOX_PATH)
|
|
164
163
|
// `per-origin` rather than Fedify's default `per-inbox`, which folds the
|
|
165
164
|
// recipient identifier into the key: one `Follow` delivered to a personal
|
|
166
165
|
// and a shared inbox, or to a plugin's second federation over the same KV
|
|
167
|
-
// store, would otherwise be handled twice
|
|
166
|
+
// store, would otherwise be handled twice.
|
|
168
167
|
.withIdempotency('per-origin')
|
|
169
168
|
.onUnverifiedActivity(async (context, activity, reason) => {
|
|
170
169
|
const json = (await activity.toJsonLd());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"federation.js","sourceRoot":"","sources":["../../src/federation/federation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQjE,OAAO,EAAE,MAAM,EAA2B,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAgBpF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc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AI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;QAAE,OAAO,CAAC,CAAC;IAC1D,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC;AAED,uEAAuE;AACvE,SAAS,cAAc;IACrB,MAAM,OAAO,GAAG,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,oBAAoB,CAAyB,CAAC;IACvE,OAAO,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC;AACrC,CAAC"}
|
|
@@ -6,7 +6,7 @@ export declare const HANDLE_TIMEOUT_MS = 5000;
|
|
|
6
6
|
/** Resolve and store the handles a body names that the directory does not know yet. */
|
|
7
7
|
export type HandleLearner = (body: string) => Promise<void>;
|
|
8
8
|
/**
|
|
9
|
-
* The site's {@link HandleLearner}
|
|
9
|
+
* The site's {@link HandleLearner}: WebFinger for each new
|
|
10
10
|
* `@user@host`, then the actor it points at, fetched signed as the site's first
|
|
11
11
|
* account for a server in authorized fetch mode.
|
|
12
12
|
*
|
|
@@ -6,7 +6,7 @@ import { siteLoaders } from './site-loaders.js';
|
|
|
6
6
|
/** How long one save waits for the handles it names to resolve. */
|
|
7
7
|
export const HANDLE_TIMEOUT_MS = 5_000;
|
|
8
8
|
/**
|
|
9
|
-
* The site's {@link HandleLearner}
|
|
9
|
+
* The site's {@link HandleLearner}: WebFinger for each new
|
|
10
10
|
* `@user@host`, then the actor it points at, fetched signed as the site's first
|
|
11
11
|
* account for a server in authorized fetch mode.
|
|
12
12
|
*
|
|
@@ -58,9 +58,9 @@ export declare function handleQuoteRequest(context: SiteInboxContext, request: Q
|
|
|
58
58
|
* Handle an `Accept`: a relay agreeing to the subscription the site asked
|
|
59
59
|
* for, or somebody going to an event.
|
|
60
60
|
*
|
|
61
|
-
* The site follows nothing but relays (
|
|
62
|
-
*
|
|
63
|
-
*
|
|
61
|
+
* The site follows nothing but relays (its `following` collection stays empty),
|
|
62
|
+
* so an `Accept` addressed to it is an answer to one of the `Follow` activities
|
|
63
|
+
* a relay subscription sends — or a stray, which {@link acceptRelay} recognises
|
|
64
64
|
* as one and leaves alone.
|
|
65
65
|
*/
|
|
66
66
|
export declare function handleAccept(context: SiteInboxContext, accept: Accept): Promise<void>;
|
|
@@ -76,7 +76,7 @@ export declare function handleReject(context: SiteInboxContext, reject: Reject):
|
|
|
76
76
|
* Nothing about the activity is interpreted here: the conversation reads it
|
|
77
77
|
* back out of the log, which is why the row keeps the whole JSON-LD rather
|
|
78
78
|
* than a few columns of it. The profile is what a conversation names the
|
|
79
|
-
* sender by when they are not a follower
|
|
79
|
+
* sender by when they are not a follower, and it is fetched in the
|
|
80
80
|
* background, so the inbox answers without waiting for it.
|
|
81
81
|
*/
|
|
82
82
|
export declare function handleLoggedActivity(context: SiteInboxContext, activity: Like | Announce | Create): Promise<void>;
|
|
@@ -93,7 +93,7 @@ export declare function handleLoggedActivity(context: SiteInboxContext, activity
|
|
|
93
93
|
* The recipient defaults to the inbox the delivery arrived at —
|
|
94
94
|
* `context.recipient` is the username for a personal inbox and `null` for the
|
|
95
95
|
* shared one — and a caller that has worked out the addressee for itself, as
|
|
96
|
-
* `handleFollow` has, names it instead
|
|
96
|
+
* `handleFollow` has, names it instead.
|
|
97
97
|
*/
|
|
98
98
|
export declare function logActivity(context: SiteInboxContext, activity: Activity, recipient?: string | undefined): Promise<void>;
|
|
99
99
|
/**
|
|
@@ -117,7 +117,7 @@ export interface InboxListener {
|
|
|
117
117
|
export declare const INBOX_LISTENERS: readonly InboxListener[];
|
|
118
118
|
/**
|
|
119
119
|
* Handle an activity another inbox has already verified, as the site's own
|
|
120
|
-
* inbox would: what a plugin's federation hands over
|
|
120
|
+
* inbox would: what a plugin's federation hands over.
|
|
121
121
|
*
|
|
122
122
|
* The activity arrives as JSON-LD and is parsed here with this core's
|
|
123
123
|
* vocabulary, because the plugin's copy of Fedify is not this one and a type
|
package/dist/federation/inbox.js
CHANGED
|
@@ -56,13 +56,13 @@ export async function handleFollow(context, follow) {
|
|
|
56
56
|
*
|
|
57
57
|
* `parseUri` is what decides whether the object is one of this site's actors:
|
|
58
58
|
* comparing strings would have to know how Fedify spells an actor's URL, and
|
|
59
|
-
* this asks Fedify instead. The identifier it answers with is the username
|
|
60
|
-
*
|
|
59
|
+
* this asks Fedify instead. The identifier it answers with is the username,
|
|
60
|
+
* and a username nobody has is not a follow of anybody.
|
|
61
61
|
*
|
|
62
62
|
* A stored actor id is the other way in, and the commoner one for a migrated
|
|
63
63
|
* site: it is the `id` the actor document publishes, so it is what a peer that
|
|
64
64
|
* just read the document names, and Fedify's router cannot parse it because it
|
|
65
|
-
* is not a path Fedify dispatches
|
|
65
|
+
* is not a path Fedify dispatches. Matched on the whole URL, as it is
|
|
66
66
|
* everywhere else.
|
|
67
67
|
*/
|
|
68
68
|
function followedUser(context, follow) {
|
|
@@ -203,9 +203,9 @@ export async function handleQuoteRequest(context, request) {
|
|
|
203
203
|
* Handle an `Accept`: a relay agreeing to the subscription the site asked
|
|
204
204
|
* for, or somebody going to an event.
|
|
205
205
|
*
|
|
206
|
-
* The site follows nothing but relays (
|
|
207
|
-
*
|
|
208
|
-
*
|
|
206
|
+
* The site follows nothing but relays (its `following` collection stays empty),
|
|
207
|
+
* so an `Accept` addressed to it is an answer to one of the `Follow` activities
|
|
208
|
+
* a relay subscription sends — or a stray, which {@link acceptRelay} recognises
|
|
209
209
|
* as one and leaves alone.
|
|
210
210
|
*/
|
|
211
211
|
export async function handleAccept(context, accept) {
|
|
@@ -234,7 +234,7 @@ function answersPost(context, activity) {
|
|
|
234
234
|
* Nothing about the activity is interpreted here: the conversation reads it
|
|
235
235
|
* back out of the log, which is why the row keeps the whole JSON-LD rather
|
|
236
236
|
* than a few columns of it. The profile is what a conversation names the
|
|
237
|
-
* sender by when they are not a follower
|
|
237
|
+
* sender by when they are not a follower, and it is fetched in the
|
|
238
238
|
* background, so the inbox answers without waiting for it.
|
|
239
239
|
*/
|
|
240
240
|
export async function handleLoggedActivity(context, activity) {
|
|
@@ -255,7 +255,7 @@ export async function handleLoggedActivity(context, activity) {
|
|
|
255
255
|
* The recipient defaults to the inbox the delivery arrived at —
|
|
256
256
|
* `context.recipient` is the username for a personal inbox and `null` for the
|
|
257
257
|
* shared one — and a caller that has worked out the addressee for itself, as
|
|
258
|
-
* `handleFollow` has, names it instead
|
|
258
|
+
* `handleFollow` has, names it instead.
|
|
259
259
|
*/
|
|
260
260
|
export async function logActivity(context, activity, recipient = context.recipient ?? undefined) {
|
|
261
261
|
const sender = activity.actorId;
|
|
@@ -318,7 +318,7 @@ export const INBOX_LISTENERS = [
|
|
|
318
318
|
];
|
|
319
319
|
/**
|
|
320
320
|
* Handle an activity another inbox has already verified, as the site's own
|
|
321
|
-
* inbox would: what a plugin's federation hands over
|
|
321
|
+
* inbox would: what a plugin's federation hands over.
|
|
322
322
|
*
|
|
323
323
|
* The activity arrives as JSON-LD and is parsed here with this core's
|
|
324
324
|
* vocabulary, because the plugin's copy of Fedify is not this one and a type
|
|
@@ -11,7 +11,7 @@ export declare function actorKeysDir(dataDir: string): string;
|
|
|
11
11
|
/**
|
|
12
12
|
* The file one key pair lives in, e.g. `data/keys/ada.ed25519.jwk`.
|
|
13
13
|
*
|
|
14
|
-
* The identifier is the user's username
|
|
14
|
+
* The identifier is the user's username, which is also what
|
|
15
15
|
* their actor id is built from, so a site can tell at a glance whose key a
|
|
16
16
|
* file is; and the algorithm is in the name too, so the two pairs are
|
|
17
17
|
* independent files that can be backed up, restored and regenerated one at a
|
|
@@ -27,7 +27,7 @@ export declare function actorKeyFile(dataDir: string, identifier: string, algori
|
|
|
27
27
|
* whatever was there, and answer with the path it was written to.
|
|
28
28
|
*
|
|
29
29
|
* The only door into `data/keys` that is not {@link loadActorKeyPairs}, and it
|
|
30
|
-
* exists for the import
|
|
30
|
+
* exists for the import: a key pair that arrives from somewhere else
|
|
31
31
|
* is the one case where a file has to be written from bytes the CMS did not
|
|
32
32
|
* mint. Everything about the layout stays here rather than at the caller — the
|
|
33
33
|
* name, the `0700` directory and the `0600` file — so there is one answer to
|
|
@@ -47,7 +47,7 @@ export declare function writeActorKeyFile(dataDir: string, identifier: string, a
|
|
|
47
47
|
* one file per pair is one thing to back up and one thing that cannot fall
|
|
48
48
|
* half out of step with itself.
|
|
49
49
|
*
|
|
50
|
-
* A file that will not import is thrown over rather than replaced
|
|
50
|
+
* A file that will not import is thrown over rather than replaced.
|
|
51
51
|
* The old code healed a damaged row by generating a new pair, which is exactly
|
|
52
52
|
* the wrong thing to do with an identity: every follower holds the public key
|
|
53
53
|
* and would stop verifying the site's posts. A site that really does want a
|
package/dist/federation/keys.js
CHANGED
|
@@ -17,7 +17,7 @@ export function actorKeysDir(dataDir) {
|
|
|
17
17
|
/**
|
|
18
18
|
* The file one key pair lives in, e.g. `data/keys/ada.ed25519.jwk`.
|
|
19
19
|
*
|
|
20
|
-
* The identifier is the user's username
|
|
20
|
+
* The identifier is the user's username, which is also what
|
|
21
21
|
* their actor id is built from, so a site can tell at a glance whose key a
|
|
22
22
|
* file is; and the algorithm is in the name too, so the two pairs are
|
|
23
23
|
* independent files that can be backed up, restored and regenerated one at a
|
|
@@ -35,7 +35,7 @@ export function actorKeyFile(dataDir, identifier, algorithm) {
|
|
|
35
35
|
* whatever was there, and answer with the path it was written to.
|
|
36
36
|
*
|
|
37
37
|
* The only door into `data/keys` that is not {@link loadActorKeyPairs}, and it
|
|
38
|
-
* exists for the import
|
|
38
|
+
* exists for the import: a key pair that arrives from somewhere else
|
|
39
39
|
* is the one case where a file has to be written from bytes the CMS did not
|
|
40
40
|
* mint. Everything about the layout stays here rather than at the caller — the
|
|
41
41
|
* name, the `0700` directory and the `0600` file — so there is one answer to
|
|
@@ -60,7 +60,7 @@ export function writeActorKeyFile(dataDir, identifier, algorithm, privateJwk) {
|
|
|
60
60
|
* one file per pair is one thing to back up and one thing that cannot fall
|
|
61
61
|
* half out of step with itself.
|
|
62
62
|
*
|
|
63
|
-
* A file that will not import is thrown over rather than replaced
|
|
63
|
+
* A file that will not import is thrown over rather than replaced.
|
|
64
64
|
* The old code healed a damaged row by generating a new pair, which is exactly
|
|
65
65
|
* the wrong thing to do with an identity: every follower holds the public key
|
|
66
66
|
* and would stop verifying the site's posts. A site that really does want a
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* which the permalink route ignores, so the id still dereferences to the post.
|
|
12
12
|
*
|
|
13
13
|
* Keyed by the natural id, and kept in `content/_data/federation/` beside the
|
|
14
|
-
* followers, because the files are the truth
|
|
14
|
+
* followers, because the files are the truth: a rebuilt database
|
|
15
15
|
* must not forget what the fediverse has been told is gone.
|
|
16
16
|
*/
|
|
17
17
|
export interface ObjectIdRecord {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DeliveryOutcome } from '../store/deliveries.ts';
|
|
2
|
+
import type { SettlingQueue } from './queue.ts';
|
|
3
|
+
export interface ObservedOutbox {
|
|
4
|
+
readonly queue: SettlingQueue;
|
|
5
|
+
readonly onOutboxError: (error: unknown) => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Report how each outbox delivery settled.
|
|
9
|
+
*
|
|
10
|
+
* Fedify has no success hook: an attempt that worked and one it gave up on
|
|
11
|
+
* both return normally from the handler. What tells them apart is whether
|
|
12
|
+
* `onOutboxError` was called while the handler ran, and a failure it will try
|
|
13
|
+
* again is told from one it gave up on by whether it put the same delivery
|
|
14
|
+
* back on this queue.
|
|
15
|
+
*/
|
|
16
|
+
export declare function observeOutbox(inner: SettlingQueue, settle: (outcome: DeliveryOutcome) => void): ObservedOutbox;
|
|
17
|
+
//# sourceMappingURL=outbox-observer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outbox-observer.d.ts","sourceRoot":"","sources":["../../src/federation/outbox-observer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAeD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,GACzC,cAAc,CAoEhB"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
+
import { messageOf } from '../util/errors.js';
|
|
3
|
+
/**
|
|
4
|
+
* Report how each outbox delivery settled.
|
|
5
|
+
*
|
|
6
|
+
* Fedify has no success hook: an attempt that worked and one it gave up on
|
|
7
|
+
* both return normally from the handler. What tells them apart is whether
|
|
8
|
+
* `onOutboxError` was called while the handler ran, and a failure it will try
|
|
9
|
+
* again is told from one it gave up on by whether it put the same delivery
|
|
10
|
+
* back on this queue.
|
|
11
|
+
*/
|
|
12
|
+
export function observeOutbox(inner, settle) {
|
|
13
|
+
const frames = new AsyncLocalStorage();
|
|
14
|
+
function settleWithoutFailingMessage(outcome) {
|
|
15
|
+
try {
|
|
16
|
+
settle(outcome);
|
|
17
|
+
}
|
|
18
|
+
catch (thrown) {
|
|
19
|
+
console.warn(`Could not record how ${outcome.activityId} to ${outcome.inbox} went: ${messageOf(thrown)}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function noteRetry(message) {
|
|
23
|
+
const frame = frames.getStore();
|
|
24
|
+
if (frame === undefined || !isOutbox(message))
|
|
25
|
+
return;
|
|
26
|
+
if (message.activityId === frame.activityId && message.inbox === frame.inbox) {
|
|
27
|
+
frame.retried = true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
queue: {
|
|
32
|
+
...inner,
|
|
33
|
+
enqueue(message, options) {
|
|
34
|
+
noteRetry(message);
|
|
35
|
+
return inner.enqueue(message, options);
|
|
36
|
+
},
|
|
37
|
+
async enqueueMany(messages, options) {
|
|
38
|
+
for (const message of messages)
|
|
39
|
+
noteRetry(message);
|
|
40
|
+
if (inner.enqueueMany !== undefined) {
|
|
41
|
+
await inner.enqueueMany(messages, options);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
for (const message of messages)
|
|
45
|
+
await inner.enqueue(message, options);
|
|
46
|
+
},
|
|
47
|
+
listen(handler, options) {
|
|
48
|
+
return inner.listen(async (message) => {
|
|
49
|
+
if (!isOutbox(message)) {
|
|
50
|
+
await handler(message);
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const frame = {
|
|
54
|
+
activityId: message.activityId,
|
|
55
|
+
inbox: message.inbox,
|
|
56
|
+
error: undefined,
|
|
57
|
+
retried: false,
|
|
58
|
+
};
|
|
59
|
+
try {
|
|
60
|
+
await frames.run(frame, () => handler(message));
|
|
61
|
+
}
|
|
62
|
+
catch (thrown) {
|
|
63
|
+
settleWithoutFailingMessage({
|
|
64
|
+
...where(frame),
|
|
65
|
+
status: 'retrying',
|
|
66
|
+
error: frame.error ?? messageOf(thrown),
|
|
67
|
+
});
|
|
68
|
+
throw thrown;
|
|
69
|
+
}
|
|
70
|
+
settleWithoutFailingMessage(outcomeOf(frame));
|
|
71
|
+
}, options);
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
onOutboxError: (error) => {
|
|
75
|
+
const frame = frames.getStore();
|
|
76
|
+
if (frame !== undefined)
|
|
77
|
+
frame.error = messageOf(error);
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function where(frame) {
|
|
82
|
+
return { activityId: frame.activityId, inbox: frame.inbox };
|
|
83
|
+
}
|
|
84
|
+
function outcomeOf(frame) {
|
|
85
|
+
const error = frame.error ?? null;
|
|
86
|
+
if (frame.retried)
|
|
87
|
+
return { ...where(frame), status: error === null ? 'queued' : 'retrying', error };
|
|
88
|
+
return { ...where(frame), status: error === null ? 'sent' : 'failed', error };
|
|
89
|
+
}
|
|
90
|
+
function isOutbox(message) {
|
|
91
|
+
if (typeof message !== 'object' || message === null)
|
|
92
|
+
return false;
|
|
93
|
+
const fields = message;
|
|
94
|
+
return (fields['type'] === 'outbox' &&
|
|
95
|
+
typeof fields['activityId'] === 'string' &&
|
|
96
|
+
typeof fields['inbox'] === 'string');
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=outbox-observer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outbox-observer.js","sourceRoot":"","sources":["../../src/federation/outbox-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAqB9C;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAC3B,KAAoB,EACpB,MAA0C;IAE1C,MAAM,MAAM,GAAG,IAAI,iBAAiB,EAAS,CAAC;IAE9C,SAAS,2BAA2B,CAAC,OAAwB;QAC3D,IAAI,CAAC;YACH,MAAM,CAAC,OAAO,CAAC,CAAC;QAClB,CAAC;QAAC,OAAO,MAAM,EAAE,CAAC;YAChB,OAAO,CAAC,IAAI,CACV,wBAAwB,OAAO,CAAC,UAAU,OAAO,OAAO,CAAC,KAAK,UAAU,SAAS,CAAC,MAAM,CAAC,EAAE,CAC5F,CAAC;QACJ,CAAC;IACH,CAAC;IAED,SAAS,SAAS,CAAC,OAAgB;QACjC,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;QAChC,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;YAAE,OAAO;QACtD,IAAI,OAAO,CAAC,UAAU,KAAK,KAAK,CAAC,UAAU,IAAI,OAAO,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,E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E,MAAM,MAAM,GAAG,OAAkC,CAAC;IAClD,OAAO,CACL,MAAM,CAAC,MAAM,CAAC,KAAK,QAAQ;QAC3B,OAAO,MAAM,CAAC,YAAY,CAAC,KAAK,QAAQ;QACxC,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,QAAQ,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -2,16 +2,16 @@ import type { FederationOrigin } from '@fedify/fedify';
|
|
|
2
2
|
/**
|
|
3
3
|
* Where a user's ActivityPub endpoints live: at their author URL, and under it.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Every user is an actor whose id is their author archive,
|
|
6
6
|
* `{baseUrl}/author/{username}/`, so there is no prefix of its own any more —
|
|
7
7
|
* the actor is a page in a browser and an actor to a peer, exactly as a post
|
|
8
|
-
* is its permalink to both
|
|
8
|
+
* is its permalink to both. The collections are the archive's
|
|
9
9
|
* children, with the trailing slashes every URL on this site has, and Fedify
|
|
10
10
|
* builds each id from these templates so nothing has to guess the form.
|
|
11
11
|
*
|
|
12
12
|
* A GET of `/author/ada` without the slash is a Fedify 404 that falls through
|
|
13
13
|
* to the public site's own canonical redirect, which is where a browser that
|
|
14
|
-
* followed an actor id without its slash lands
|
|
14
|
+
* followed an actor id without its slash lands.
|
|
15
15
|
*/
|
|
16
16
|
export declare const ACTOR_PATH: "/author/{identifier}/";
|
|
17
17
|
/** The actor's inbox, its outbox and its two follow collections. */
|
|
@@ -20,7 +20,7 @@ export declare const OUTBOX_PATH: "/author/{identifier}/outbox/";
|
|
|
20
20
|
export declare const FOLLOWERS_PATH: "/author/{identifier}/followers/";
|
|
21
21
|
export declare const FOLLOWING_PATH: "/author/{identifier}/following/";
|
|
22
22
|
/**
|
|
23
|
-
* The actor's pinned posts
|
|
23
|
+
* The actor's pinned posts: Mastodon's `toot:featured`, which it
|
|
24
24
|
* reads to show pins at the top of a profile and names as the `target` of the
|
|
25
25
|
* `Add` and `Remove` that pin and unpin one.
|
|
26
26
|
*/
|
|
@@ -34,7 +34,7 @@ export declare const QUOTE_AUTHORIZATION_PATH: "/author/{identifier}/quotes/{id}
|
|
|
34
34
|
* The instance-wide inbox, which a peer may use to deliver to every actor at
|
|
35
35
|
* once.
|
|
36
36
|
*
|
|
37
|
-
* A reserved top-level path
|
|
37
|
+
* A reserved top-level path, which is why `inbox` is one of the
|
|
38
38
|
* two names `content/authors.ts` keeps a user from taking.
|
|
39
39
|
*/
|
|
40
40
|
export declare const SHARED_INBOX_PATH: "/inbox/";
|
|
@@ -71,8 +71,8 @@ export declare function updateActivityId(objectId: URL | string, revision: strin
|
|
|
71
71
|
*/
|
|
72
72
|
export declare function deleteActivityId(objectId: URL | string, revision: string): URL;
|
|
73
73
|
/**
|
|
74
|
-
* The id of the `Add` that pinned an object or the `Remove` that unpinned it
|
|
75
|
-
*
|
|
74
|
+
* The id of the `Add` that pinned an object or the `Remove` that unpinned it,
|
|
75
|
+
* one per pin and per unpin for the same reason a `Delete` carries
|
|
76
76
|
* its moment: a post can be pinned, unpinned and pinned again.
|
|
77
77
|
*/
|
|
78
78
|
export declare function pinActivityId(objectId: URL | string, change: 'pin' | 'unpin', revision: string): URL;
|
|
@@ -88,7 +88,7 @@ export declare function pinActivityId(objectId: URL | string, change: 'pin' | 'u
|
|
|
88
88
|
*/
|
|
89
89
|
export declare function federationOrigin(baseUrl: string): FederationOrigin;
|
|
90
90
|
/**
|
|
91
|
-
* The domain a user's actor lists in `attributionDomains
|
|
91
|
+
* The domain a user's actor lists in `attributionDomains`: the
|
|
92
92
|
* host links to this site are shared from.
|
|
93
93
|
*
|
|
94
94
|
* The hostname, not {@link federationOrigin}'s `handleHost`. Mastodon credits
|
package/dist/federation/paths.js
CHANGED
|
@@ -2,16 +2,16 @@ import { AUTHOR_BASE, INBOX_BASE } from '../content/authors.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* Where a user's ActivityPub endpoints live: at their author URL, and under it.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
5
|
+
* Every user is an actor whose id is their author archive,
|
|
6
6
|
* `{baseUrl}/author/{username}/`, so there is no prefix of its own any more —
|
|
7
7
|
* the actor is a page in a browser and an actor to a peer, exactly as a post
|
|
8
|
-
* is its permalink to both
|
|
8
|
+
* is its permalink to both. The collections are the archive's
|
|
9
9
|
* children, with the trailing slashes every URL on this site has, and Fedify
|
|
10
10
|
* builds each id from these templates so nothing has to guess the form.
|
|
11
11
|
*
|
|
12
12
|
* A GET of `/author/ada` without the slash is a Fedify 404 that falls through
|
|
13
13
|
* to the public site's own canonical redirect, which is where a browser that
|
|
14
|
-
* followed an actor id without its slash lands
|
|
14
|
+
* followed an actor id without its slash lands.
|
|
15
15
|
*/
|
|
16
16
|
export const ACTOR_PATH = `/${AUTHOR_BASE}/{identifier}/`;
|
|
17
17
|
/** The actor's inbox, its outbox and its two follow collections. */
|
|
@@ -20,7 +20,7 @@ export const OUTBOX_PATH = `${ACTOR_PATH}outbox/`;
|
|
|
20
20
|
export const FOLLOWERS_PATH = `${ACTOR_PATH}followers/`;
|
|
21
21
|
export const FOLLOWING_PATH = `${ACTOR_PATH}following/`;
|
|
22
22
|
/**
|
|
23
|
-
* The actor's pinned posts
|
|
23
|
+
* The actor's pinned posts: Mastodon's `toot:featured`, which it
|
|
24
24
|
* reads to show pins at the top of a profile and names as the `target` of the
|
|
25
25
|
* `Add` and `Remove` that pin and unpin one.
|
|
26
26
|
*/
|
|
@@ -34,7 +34,7 @@ export const QUOTE_AUTHORIZATION_PATH = `${ACTOR_PATH}quotes/{id}/`;
|
|
|
34
34
|
* The instance-wide inbox, which a peer may use to deliver to every actor at
|
|
35
35
|
* once.
|
|
36
36
|
*
|
|
37
|
-
* A reserved top-level path
|
|
37
|
+
* A reserved top-level path, which is why `inbox` is one of the
|
|
38
38
|
* two names `content/authors.ts` keeps a user from taking.
|
|
39
39
|
*/
|
|
40
40
|
export const SHARED_INBOX_PATH = `/${INBOX_BASE}/`;
|
|
@@ -79,8 +79,8 @@ export function deleteActivityId(objectId, revision) {
|
|
|
79
79
|
return new URL(`${objectId.toString()}#delete/${encodeURIComponent(revision)}`);
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
|
-
* The id of the `Add` that pinned an object or the `Remove` that unpinned it
|
|
83
|
-
*
|
|
82
|
+
* The id of the `Add` that pinned an object or the `Remove` that unpinned it,
|
|
83
|
+
* one per pin and per unpin for the same reason a `Delete` carries
|
|
84
84
|
* its moment: a post can be pinned, unpinned and pinned again.
|
|
85
85
|
*/
|
|
86
86
|
export function pinActivityId(objectId, change, revision) {
|
|
@@ -101,7 +101,7 @@ export function federationOrigin(baseUrl) {
|
|
|
101
101
|
return { handleHost: url.host, webOrigin: url.origin };
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
* The domain a user's actor lists in `attributionDomains
|
|
104
|
+
* The domain a user's actor lists in `attributionDomains`: the
|
|
105
105
|
* host links to this site are shared from.
|
|
106
106
|
*
|
|
107
107
|
* The hostname, not {@link federationOrigin}'s `handleHost`. Mastodon credits
|
|
@@ -5,8 +5,7 @@ import type { ResolvedConfig } from '../config.ts';
|
|
|
5
5
|
import type { NotificationTimers } from '../notifications/digest.ts';
|
|
6
6
|
import type { FederationContextData } from './federation.ts';
|
|
7
7
|
/**
|
|
8
|
-
* The names and faces of the fediverse actors who are not followers
|
|
9
|
-
* (TASK-184).
|
|
8
|
+
* The names and faces of the fediverse actors who are not followers.
|
|
10
9
|
*
|
|
11
10
|
* A follower is named from the profile it published when it followed. Anybody
|
|
12
11
|
* else who liked, boosted, answered or quoted a post used to be named by a
|
|
@@ -20,7 +19,7 @@ import type { FederationContextData } from './federation.ts';
|
|
|
20
19
|
* the sweep fetches every inbox actor with no profile or a stale one, which is
|
|
21
20
|
* the backfill of a log written before this existed, the refresh of profiles
|
|
22
21
|
* that have changed, and the rebuild after the database has been deleted
|
|
23
|
-
*
|
|
22
|
+
* all at once.
|
|
24
23
|
*/
|
|
25
24
|
/** How old a stored profile gets before the sweep fetches it again. */
|
|
26
25
|
export declare const PROFILE_MAX_AGE_MS: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/federation/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,KAAK,EAAE,KAAK,EAAQ,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAG7D
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../src/federation/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAE9D,OAAO,KAAK,EAAE,KAAK,EAAQ,MAAM,eAAe,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAIrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAG7D;;;;;;;;;;;;;;;;GAgBG;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,QAA0B,CAAC;AAE1D,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,QAAiB,CAAC;AAE/C,gCAAgC;AAChC,eAAO,MAAM,gBAAgB,QAAqB,CAAC;AAEnD,+EAA+E;AAC/E,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,OAA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AAc,CAAC;IAAC,aAAa,EAAE,cAAc,CAAA;CAAE,GACzE,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAYnC"}
|
|
@@ -4,8 +4,7 @@ import { messageOf } from '../util/errors.js';
|
|
|
4
4
|
import { createSerialQueue } from '../util/queue.js';
|
|
5
5
|
import { siteLoaders } from './site-loaders.js';
|
|
6
6
|
/**
|
|
7
|
-
* The names and faces of the fediverse actors who are not followers
|
|
8
|
-
* (TASK-184).
|
|
7
|
+
* The names and faces of the fediverse actors who are not followers.
|
|
9
8
|
*
|
|
10
9
|
* A follower is named from the profile it published when it followed. Anybody
|
|
11
10
|
* else who liked, boosted, answered or quoted a post used to be named by a
|
|
@@ -19,7 +18,7 @@ import { siteLoaders } from './site-loaders.js';
|
|
|
19
18
|
* the sweep fetches every inbox actor with no profile or a stale one, which is
|
|
20
19
|
* the backfill of a log written before this existed, the refresh of profiles
|
|
21
20
|
* that have changed, and the rebuild after the database has been deleted
|
|
22
|
-
*
|
|
21
|
+
* all at once.
|
|
23
22
|
*/
|
|
24
23
|
/** How old a stored profile gets before the sweep fetches it again. */
|
|
25
24
|
export const PROFILE_MAX_AGE_MS = 7 * 24 * 60 * 60 * 1000;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/federation/profiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAMxC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD
|
|
1
|
+
{"version":3,"file":"profiles.js","sourceRoot":"","sources":["../../src/federation/profiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,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C,IAAI,EAAE,GAAG,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,IAAI,IAAI;QAClE,GAAG,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI;KACjC,CAAC;AACJ,CAAC;AAED,sDAAsD;AACtD,SAAS,QAAQ,CAAC,KAAwB;IACxC,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAChC,OAAO,KAAK,YAAY,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { QuoteAuthorization } from '@fedify/vocab';
|
|
|
3
3
|
import type { User } from '../site/users.ts';
|
|
4
4
|
import type { FederationContextData } from './federation.ts';
|
|
5
5
|
/**
|
|
6
|
-
* Quote approvals (FEP-044f), as
|
|
6
|
+
* Quote approvals (FEP-044f), as files, which are the truth.
|
|
7
7
|
*
|
|
8
8
|
* Mastodon 4.5 shows a quote only once the quoted author's server has stamped
|
|
9
9
|
* it: an `Accept` of the `QuoteRequest` whose `result` is a
|