Changeset f6c414e in Klonkt for src/views/pages/timeline.ejs


Ignore:
Timestamp:
06/24/2026 04:37:32 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
9cc0f9f
Parents:
434c2e9
Message:

feat(fediverse): star = like via your own fediverse account (server-only input)

The post heart is now a star that lets any visitor like the post from their own
fediverse account: click -> enter just your server (e.g. mastodon.social) -> bounce
to your server's authorize_interaction. No full @handle needed (your server knows
who you are). Count shows incoming fediverse likes. Reuses the remote-interaction
popover; placeholder simplified to the server.

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

File:
1 edited

Legend:

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

    r434c2e9 rf6c414e  
    111111      var f = document.createElement('form'); f.className='fedi-remote-form'; f.dataset.uri = b.getAttribute('data-fedi-uri')||'';
    112112      f.innerHTML = '<input type="text" autocomplete="off" spellcheck="false"><button type="submit" class="btn btn-primary fedi-remote-go" aria-label="ok">&rarr;</button><button type="button" class="fedi-remote-cancel" aria-label="x">&times;</button>';
    113       f.querySelector('input').placeholder = b.getAttribute('data-fedi-ph') || '@name@server.social';
     113      f.querySelector('input').placeholder = b.getAttribute('data-fedi-ph') || 'mastodon.social';
    114114      document.body.appendChild(f); place(f, b); current=f; currentBtn=b; f.querySelector('input').focus();
    115115      return;
Note: See TracChangeset for help on using the changeset viewer.