Ignore:
Timestamp:
06/24/2026 05:48:48 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
2279f80
Parents:
6bee3ec
Message:

fix(fediverse): ⭐ star now actually likes (was landing on the reply page)

The interaction page was reply-only, so clicking ⭐ (which bounces to
/authorize_interaction) dumped you on the reply composer. Added a ⭐ Like button
(+ POST /authorize_interaction/like → sendInteraction) and a 'liked' confirmation,
so the star flow completes with a real Like. Reply stays as a secondary action.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/authorize-interaction.ejs

    r6bee3ec r0aa23cf  
    2020    <% } %>
    2121    <p class="auth-interact-note"><a href="/"><%= t('fedi.remote_back') %></a></p>
     22  <% } else if (typeof liked !== 'undefined' && liked) { %>
     23    <h1 class="auth-interact-title">★ <%= t('fedi.liked_title') %></h1>
     24    <p class="auth-interact-note"><%= t('fedi.liked_done') %></p>
     25    <p class="auth-interact-actions">
     26      <% if (uri) { %><a class="btn" href="<%= uri %>" target="_blank" rel="nofollow noopener"><%= t('fedi.remote_view_original') %></a><% } %>
     27      <a class="btn btn-primary" href="/"><%= t('fedi.remote_back') %></a>
     28    </p>
    2229  <% } else if (typeof sent !== 'undefined' && sent) { %>
    2330    <h1 class="auth-interact-title"><%= t('fedi.remote_sent_title') %></h1>
     
    5259      <% } %>
    5360    </blockquote>
     61    <form method="post" action="/authorize_interaction/like" class="auth-interact-like">
     62      <input type="hidden" name="uri" value="<%= uri %>">
     63      <button type="submit" class="btn btn-primary auth-like-btn">★ <%= t('fedi.like_btn') %></button>
     64    </form>
     65    <p class="auth-interact-or"><%= t('fedi.or_reply') %></p>
    5466    <form method="post" action="/authorize_interaction" class="auth-interact-form">
    5567      <input type="hidden" name="uri" value="<%= uri %>">
    5668      <textarea name="text" rows="4" required placeholder="<%= t('fedi.reply_ph') %>"></textarea>
    5769      <div class="auth-interact-actions">
    58         <button type="submit" class="btn btn-primary"><%= t('fedi.send') %></button>
     70        <button type="submit" class="btn"><%= t('fedi.send') %></button>
    5971        <a href="<%= uri %>" class="btn"><%= t('comments.cancel') %></a>
    6072      </div>
Note: See TracChangeset for help on using the changeset viewer.