aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-09-24 11:40:47 +0200
committerChristophe Besson <cbesson@gmail.com>2026-09-24 16:45:38 +0200
commitfedb0f2afa552747a45b6b7c362a7977923e67ff (patch)
treeb6ddc157181cc8e59218fb556b3239dc8315ed6c /packages/meshbay-hub/src
parentbd9f2e8a8d1d7abe05f61f749992cda30a81cd15 (diff)
downloadmeshbay-fedb0f2afa552747a45b6b7c362a7977923e67ff.tar.gz
refactor(node): move operator authority and the admin response out of webrtc_server
AdminMixin in transport/webrtc/admin.py: who the operator is, the signed challenge, signature checks, and _do_admin_response moved unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/search-page.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/search-page.js b/packages/meshbay-hub/src/meshbay_hub/static/search-page.js
index 61565e8..ba2ae63 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/search-page.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/search-page.js
@@ -314,7 +314,7 @@ async function fetchGroupIndex(pool, groupId, token, bundleKey, username, userId
// Which of the reader's groups sit on their own node — the tie-breaker
// when the same file is announced by several of them
// (docs/MESHBAY_DESIGN.md §9.11). Computed by the node from its own
- // record of who it belongs to (webrtc_server.py's _is_node_admin), never
+ // record of who it belongs to (webrtc/admin.py's _is_node_admin), never
// from a hub claim, and deliberately not written to the index cache: it
// describes this connection, not the group's content.
return { entries: indexMsg.entries || [], roots, isNodeAdmin: !!ack.is_node_admin };
@@ -734,7 +734,7 @@ function SearchPage({ token, username, userId, groups, onPlayQueue, userPrefs })
// How a unit's source is chosen, shared by every merged view
// (docs/MESHBAY_DESIGN.md §9.11). `isLocal` reads the flag the node itself
// put in the handshake ack — computed from its own record of who it belongs
- // to (webrtc_server.py's `_is_node_admin`), never from a hub claim.
+ // to (webrtc/admin.py's `_is_node_admin`), never from a hub claim.
const mergeOpts = useMemo(() => ({
salt: userId || '',
isLocal: (gid) => {