Changeset 7f46112b in Klonkt for src/views/pages


Ignore:
Timestamp:
06/24/2026 12:58:40 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
41a7637
Parents:
2826bb97
Message:

feat(activitypub): per-comment reply-via-fediverse + clearer button

Visitors can now reply to a specific fediverse comment from their own server
(bounces authorize_interaction at the comment AP id). Replaced the unclear
elephant emoji with a reply-arrow icon and gave the post button a clean accent
pill style.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/post.ejs

    r2826bb97 r7f46112b  
    109109                    </form>
    110110                  </details>
     111                <% } else if (r.object_uri) { %>
     112                  <div class="comment-actions">
     113                    <button type="button" class="comment-reply-btn fedi-remote-reply-btn" data-fedi-uri="<%= r.object_uri %>" data-fedi-prompt="<%= t('fedi.remote_prompt') %>">
     114                      <svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 17 4 12 9 7"/><path d="M20 18v-2a4 4 0 0 0-4-4H4"/></svg>
     115                      <%= t('fedi.remote_reply_short') %>
     116                    </button>
     117                  </div>
    111118                <% } %>
    112119
     
    139146  <% var _postAbsUrl = (typeof ogOrigin !== 'undefined' && ogOrigin ? ogOrigin : '') + (typeof _base !== 'undefined' && _base ? _base : '') + '/' + post.slug; %>
    140147  <div class="post-fediverse-cta">
    141     <button type="button" class="btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-prompt="<%= t('fedi.remote_prompt') %>">🐘 <%= t('fedi.remote_reply') %></button>
     148    <button type="button" class="btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-prompt="<%= t('fedi.remote_prompt') %>">
     149      <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 17 4 12 9 7"/><path d="M20 18v-2a4 4 0 0 0-4-4H4"/></svg>
     150      <%= t('fedi.remote_reply') %>
     151    </button>
    142152  </div>
    143153  <script>
Note: See TracChangeset for help on using the changeset viewer.