From fabadd858584bf2c9e06916e29fc5eee09f87f41 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 6 Feb 2026 20:41:16 +0100 Subject: [PATCH] feat: allow comments on likes, reposts, and bookmarks - Show textarea for all compose actions, not just replies - Add bookmark button to item actions - Comments will be included in syndication --- locales/en.json | 2 ++ package.json | 2 +- views/compose.njk | 11 ++++------- views/partials/actions.njk | 3 +++ 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/locales/en.json b/locales/en.json index 488f369..8598b99 100644 --- a/locales/en.json +++ b/locales/en.json @@ -43,6 +43,8 @@ "compose": { "title": "Compose", "content": "What's on your mind?", + "comment": "Add a comment (optional)", + "commentHint": "Your comment will be included when this is syndicated", "submit": "Post", "cancel": "Cancel", "replyTo": "Replying to", diff --git a/package.json b/package.json index 881ec56..0344a8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rmdes/indiekit-endpoint-microsub", - "version": "1.0.13", + "version": "1.0.14", "description": "Microsub endpoint for Indiekit. Enables subscribing to feeds and reading content using the Microsub protocol.", "keywords": [ "indiekit", diff --git a/views/compose.njk b/views/compose.njk index f1386bb..95a4e49 100644 --- a/views/compose.njk +++ b/views/compose.njk @@ -60,18 +60,17 @@ {% set isAction = likeOf or repostOf or bookmarkOf %} - {% if not isAction %} {{ textarea({ - label: __("microsub.compose.content"), + label: __("microsub.compose.content") if not isAction else __("microsub.compose.comment"), id: "content", name: "content", - rows: 5, - attributes: { autofocus: true } + rows: 5 if not isAction else 3, + attributes: { autofocus: true }, + hint: __("microsub.compose.commentHint") if isAction else false }) }}
0 characters
- {% endif %}
{{ button({ @@ -84,7 +83,6 @@
- {% if not isAction %} - {% endif %} {% endblock %} diff --git a/views/partials/actions.njk b/views/partials/actions.njk index d8b09f5..f35f0f6 100644 --- a/views/partials/actions.njk +++ b/views/partials/actions.njk @@ -9,6 +9,9 @@ {{ icon("repost") }} + + {{ icon("bookmark") }} + {{ icon("public") }}