Changeset abdcf33 in Klonkt for src/services/ensurePrimarySite.js


Ignore:
Timestamp:
06/27/2026 09:46:03 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
d2b7247
Parents:
3746f6a
Message:

chore(cleanup): remove the dead comments_moderation_mode column + handling

Native comments are gone; this column was set but never read. Removed from the site
INSERT (admin-sites create) and UPDATE (save) in lockstep (column + placeholder + value),
from ensurePrimarySite's seed INSERT, the ensureColumn in database.js, and the 3 unused
i18n keys (asite.comment_moderation / moderation_trust / moderation_moderate, x3 langs).
No DROP — the column stays in existing DBs as harmless dead data. require_login_to_comment
is kept (still used by PermissionsService).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/ensurePrimarySite.js

    r3746f6a rabdcf33  
    4040      language, palette, accent, profile_photo,
    4141      is_public, robots_index, require_login_to_comment, enable_audio_player,
    42       feed_view_default, comments_moderation_mode, is_primary
    43     ) VALUES (?, ?, ?, '', '', ?, 'en', 'klonkt', '#e8b04b', NULL, 1, 1, 1, 1, 'grid', 'moderate', 1)
     42      feed_view_default, is_primary
     43    ) VALUES (?, ?, ?, '', '', ?, 'en', 'klonkt', '#e8b04b', NULL, 1, 1, 1, 1, 'grid', 1)
    4444  `).run(siteId, slug, defaultTitle(), owner.id);
    4545
Note: See TracChangeset for help on using the changeset viewer.