diff --git a/package-lock.json b/package-lock.json index f988de5..07704b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "3.11.0", + "version": "3.11.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "3.11.0", + "version": "3.11.1", "license": "MIT", "dependencies": { "@fedify/debugger": "^2.1.0", diff --git a/package.json b/package.json index 5f057ae..c146009 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "3.11.0", + "version": "3.11.1", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "keywords": [ "indiekit", diff --git a/views/activitypub-compose.njk b/views/activitypub-compose.njk index a8d4047..fec5b6a 100644 --- a/views/activitypub-compose.njk +++ b/views/activitypub-compose.njk @@ -45,33 +45,45 @@ {# Rich content editor (EasyMDE with media browser) #}
{{ textarea({ - id: "content", name: "content", - label: { text: __("activitypub.compose.contentLabel") if __("activitypub.compose.contentLabel") else "Content" }, - attributes: { - rows: "8", - required: "true" - }, - endpoint: mediaEndpoint + label: "Content", + rows: 8, + field: { + attributes: { + editor: true, + "editor-endpoint": mediaEndpoint, + "editor-id": "ap-compose-content", + "editor-locale": application.locale if application else "en", + "editor-image-upload": true + } + } }) }}
{# Featured image #}
{{ fileInput({ - id: "photo", name: "photo", - label: { text: __("activitypub.compose.photoLabel") if __("activitypub.compose.photoLabel") else "Photo" }, - endpoint: mediaEndpoint + label: "Photo", + field: { + attributes: { + endpoint: mediaEndpoint + } + }, + accept: "image/*", + attributes: { + placeholder: "https://" + } }) }}
{# Tags / categories #}
{{ tagInput({ - id: "category", name: "category", - label: { text: __("activitypub.compose.tagsLabel") if __("activitypub.compose.tagsLabel") else "Tags" } + label: "Tags", + optional: true, + hint: "Separate with commas" }) }}