fix inter instance config broken stuffs

This commit is contained in:
legop3
2026-09-14 20:52:01 -04:00
parent 9ce6550f13
commit 470e95b0f9
3 changed files with 88 additions and 3 deletions
@@ -190,7 +190,15 @@ function filterPublicUsers(users = [], publicIds) {
function buildLocalInfo() {
const mode = getMode();
const lockdown = isLockdownMode();
const features = getFeatureFlags();
/*
Build every configuration-derived part of one public response from the
same immutable revision. Besides preventing a revision change from mixing
feature flags with newer social links, this supplies the explicit snapshot
required by getConfiguredSocials instead of relying on the removed legacy
global configuration object.
*/
const config = loadConfig();
const features = getFeatureFlags(config);
const publicRoster = getPublicRoster();
const publicIds = publicRoverIdSet(publicRoster);
const roster = publicRoster.map((rover) => (lockdown ? rover : addRoverSnapshotLinks(rover)));