Changeset 837fc9c in Klonkt for src/views/pages/post-edit.ejs


Ignore:
Timestamp:
06/27/2026 07:51:44 AM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
92f6976
Parents:
aa45208
Message:

feat(posts): NSFW / sensitive content

Mark a post NSFW (checkbox in the editor, available to all). On-site the cover blurs in
feed/grid and the whole post blurs behind a 'Gevoelige inhoud' banner until clicked. In the
fediverse the Note gets sensitive:true + a content-warning summary (Mastodon CW). i18n NL/EN/DE.

File:
1 edited

Legend:

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

    raa45208 r837fc9c  
    237237          <input type="checkbox" name="noindex" value="1" <%= post.noindex ? 'checked' : '' %>>
    238238          <span>🚫 <%= t('pedit.noindex_label') %></span>
     239        </label>
     240        <label class="pe-checkbox">
     241          <input type="checkbox" name="nsfw" value="1" <%= post.nsfw ? 'checked' : '' %>>
     242          <span>🔞 <%= t('pedit.nsfw_label') %></span>
    239243        </label>
    240244        <% if (typeof premiumUnlocked === 'undefined' || premiumUnlocked) { %>
Note: See TracChangeset for help on using the changeset viewer.