Changeset e390844 in Klonkt


Ignore:
Timestamp:
06/27/2026 12:59:41 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
80c36a1
Parents:
1b99225
Message:

feat(post): hide 'Interact via the fediverse' CTA for the owner/admin

That button is for visitors (reply from their own server); the owner has their own
controls and it's their own post, so hide it when canManageSite.

File:
1 edited

Legend:

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

    r1b99225 re390844  
    9494        </ol>
    9595      <% } %>
     96      <%# "Interact via the fediverse" is for VISITORS (reply from their own server).
     97          The owner/admin has their own controls + it's their post → hide it for them. %>
     98      <% if (typeof canManageSite === 'undefined' || !canManageSite) { %>
    9699      <div class="post-fediverse-cta">
    97100        <button type="button" class="btn fedi-remote-reply-btn" data-fedi-uri="<%= _postAbsUrl %>" data-fedi-ph="<%= t('fedi.remote_ph') %>">
     
    100103        </button>
    101104      </div>
     105      <% } %>
    102106    </section>
    103107  <% } %>
Note: See TracChangeset for help on using the changeset viewer.