mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Remove blocking access control checks to fix slow initial video loading
This commit is contained in:
1 parent
efb42e93db
commit
14d7423e29
2 files changed
+7
-2
No files matched your search
@@ -494,7 +494,7 @@ class Application {
|
||||
})
|
||||
: Promise.resolve(null);
|
||||
|
||||
await Promise.all([accessControlPromise, adminPanePromise]);
|
||||
// await Promise.all([accessControlPromise, adminPanePromise]);
|
||||
|
||||
const syncSessionActorBlacklist = async (trigger) => {
|
||||
if (this.pubkey) {
|
||||
|
||||
@@ -1104,7 +1104,12 @@ export class NostrService {
|
||||
this.ensureInitialLoadDeferred();
|
||||
|
||||
try {
|
||||
await this.ensureAccessControlReady();
|
||||
this.ensureAccessControlReady().catch((error) => {
|
||||
userLogger.warn(
|
||||
"[nostrService] Background access control ready check failed:",
|
||||
error
|
||||
);
|
||||
});
|
||||
|
||||
if (forceFetch) {
|
||||
this.clearVideoSubscription();
|
||||
|
||||
Reference in new issue
Block a user