Changeset f278df9 in Klonkt for src/views/pages


Ignore:
Timestamp:
06/26/2026 07:47:20 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
ce0bedf
Parents:
283f618
Message:

feat(fediverse): auto-boost a followed account ('feature an artist')

Phase 1 of the Cirkels-on-AP rework. A followed account can be marked auto-boost:
their new top-level posts are automatically re-Announced (boosted) to your own
followers. Toggle in the /tijdlijn following list + a checkbox on the follow box.
ap_following.auto_boost column (migrated), setAutoBoost(), hook in handleInbox's
timeline loop, POST /tijdlijn/autoboost. nl/en/de.

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

File:
1 edited

Legend:

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

    r283f618 rf278df9  
    88    <input type="text" name="handle" placeholder="@naam@server.social" autocomplete="off" spellcheck="false" required>
    99    <button type="submit" class="btn btn-primary"><%= t('tl.follow_btn') %></button>
     10    <label class="tl-follow-ab" title="<%= t('tl.autoboost_hint') %>"><input type="checkbox" name="auto_boost" value="1"> 🔁 <%= t('tl.autoboost_follow') %></label>
    1011  </form>
    1112
     
    2122            <% if (f.status === 'pending') { %><span class="tl-pending"><%= t('tl.pending') %></span><% } %>
    2223          </span>
     24          <form method="post" action="/tijdlijn/autoboost" class="tl-foll-ab" title="<%= t('tl.autoboost_hint') %>">
     25            <input type="hidden" name="actor_uri" value="<%= f.actor_uri %>">
     26            <label><input type="checkbox" name="auto_boost" value="1" <%= f.auto_boost ? 'checked' : '' %> onchange="this.form.submit()"> 🔁 <%= t('tl.autoboost') %></label>
     27          </form>
    2328          <form method="post" action="/tijdlijn/unfollow"><input type="hidden" name="actor_uri" value="<%= f.actor_uri %>"><button type="submit" class="tl-unfollow"><%= t('tl.unfollow') %></button></form>
    2429        </li>
Note: See TracChangeset for help on using the changeset viewer.