Changeset b6cdc3d in Klonkt for src/views/pages/post.ejs


Ignore:
Timestamp:
06/26/2026 01:13:21 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
54d2f98
Parents:
c7c7f02
Message:

feat(fedi): like/boost/reply on the interaction page + display-only stats

  • Post 'From the fediverse' stats (like/boost/reply) are now display-only counters (the star is no longer a button). One CTA, renamed 'Interact via the fediverse'.
  • The /authorize_interaction page now offers Like AND Boost (next to reply), via a new POST /authorize_interaction/boost (Undo-able later; markBoosted so it shows in the Cirkel if it's in your timeline).
  • The 'view the full post + replies on the source' link is now a prominent button.
  • i18n nl/en/de: fedi.boost_btn, fedi.boosted_title/_done, fedi.remote_interact.

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

File:
1 edited

Legend:

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

    rc7c7f02 rb6cdc3d  
    7474      <h2 class="comments-heading"><%= t('fedi.heading') %></h2>
    7575      <div class="fedi-stats">
    76         <button type="button" class="fedi-stat fedi-stat-btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-ph="<%= t('fedi.remote_ph') %>" title="<%= t('like.fedi_title') %>">
     76        <span class="fedi-stat" title="<%= t('fedi.likes') %>">
    7777          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>
    7878          <span><%= _fedi.likeCount %></span>
    79         </button>
     79        </span>
    8080        <span class="fedi-stat" title="<%= t('fedi.boosts') %>">
    8181          <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg>
     
    9696      <div class="post-fediverse-cta">
    9797        <button type="button" class="btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-ph="<%= t('fedi.remote_ph') %>">
    98           <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>
    99           <%= t('fedi.remote_reply') %>
     98          <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="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg>
     99          <%= t('fedi.remote_interact') %>
    100100        </button>
    101101      </div>
Note: See TracChangeset for help on using the changeset viewer.