Ignore:
Timestamp:
06/24/2026 02:26:32 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
dc8e9bd
Parents:
2e9773f
Message:

refactor(comments): remove native comments — social is fediverse-only

Removes routes/comments.js + admin-comments.js (+ mounts), the comment section &
reply UI on posts, comment loading in the post route, the admin moderation page +
links, and the per-site comment-moderation settings. The 'From the fediverse'
section is now the post's comment area. The .comment CSS stays (reused there);
the comments table is left in place (dead) so old-data cascade-deletes still work.

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

File:
1 edited

Legend:

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

    r2e9773f r59f0170  
    147147        <input type="checkbox" name="robots_index" value="1" <%= site.robots_index ? 'checked' : '' %>>
    148148        <span><%= t('asite.robots_index') %></span>
    149       </label>
    150       <label class="cb">
    151         <input type="checkbox" name="require_login_to_comment" value="1" <%= site.require_login_to_comment ? 'checked' : '' %>>
    152         <span><%= t('asite.require_login_comment') %></span>
    153       </label>
    154       <label>
    155         <span><%= t('asite.comment_moderation') %></span>
    156         <select name="comments_moderation_mode">
    157           <option value="trust"    <%= (site.comments_moderation_mode || 'trust') === 'trust'    ? 'selected' : '' %>><%= t('asite.moderation_trust') %></option>
    158           <option value="moderate" <%= site.comments_moderation_mode === 'moderate' ? 'selected' : '' %>><%= t('asite.moderation_moderate') %></option>
    159         </select>
    160149      </label>
    161150      <% if (typeof audioEnabled === 'undefined' || audioEnabled) { %>
Note: See TracChangeset for help on using the changeset viewer.