Changeset e0a1ec1 in Klonkt for src/views


Ignore:
Timestamp:
06/30/2026 02:27:57 AM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
d3b9f68
Parents:
084d1c0
Message:

feat(editor): per-post "share audio on the fediverse" toggle

Adds a per-post checkbox in the post editor that sets fedi_open on the post's hosted tracks
on save — so opening audio + federating it happens in one step, instead of toggling per track
in Beheer -> Audio and then re-saving the post. The underlying flag stays per track.

  • src/routes/posts.js — setAudioFediOpen()/postAudioFediOpen() helpers; create + save set fedi_open on the post's track/album/playlist tracks before federating; the edit form computes the checkbox's initial state
  • src/views/pages/post-edit.ejs — the fedi_open_audio checkbox next to NSFW/noindex
  • src/services/i18n.js — pedit.fedi_audio_label (nl/en/de)

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

File:
1 edited

Legend:

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

    r084d1c0 re0a1ec1  
    245245               placeholder="<%= t('pedit.nsfw_cw_ph') %>"
    246246               style="width:100%;box-sizing:border-box;margin:6px 0 2px;font-size:13px;padding:7px 9px">
     247        <label class="pe-checkbox">
     248          <input type="checkbox" name="fedi_open_audio" value="1" <%= (typeof fediOpenAudio !== 'undefined' && fediOpenAudio) ? 'checked' : '' %>>
     249          <span>🌐 <%= t('pedit.fedi_audio_label') %></span>
     250        </label>
    247251        <script>
    248252        (function () {
Note: See TracChangeset for help on using the changeset viewer.