Bluesky app fork with some witchin' additions 馃挮
1diff --git a/node_modules/@atproto/api/dist/agent.js b/node_modules/@atproto/api/dist/agent.js
2index c486fb7..d77a845 100644
3--- a/node_modules/@atproto/api/dist/agent.js
4+++ b/node_modules/@atproto/api/dist/agent.js
5@@ -99,6 +99,9 @@ class Agent extends xrpc_1.XrpcClient {
6 if (this.proxy && !headers.has('atproto-proxy')) {
7 headers.set('atproto-proxy', this.proxy);
8 }
9+ if (headers.get('atproto-proxy') === '') {
10+ headers.delete('atproto-proxy');
11+ }
12 // Merge the labelers header of this particular request with the app &
13 // instance labelers.
14 headers.set('atproto-accept-labelers', [
15@@ -597,7 +600,7 @@ class Agent extends xrpc_1.XrpcClient {
16 hideAllFeeds: false,
17 },
18 };
19- const res = await this.app.bsky.actor.getPreferences({});
20+ const res = await this.app.bsky.actor.getPreferences({}, {headers: {'atproto-proxy': ''}});
21 const labelPrefs = [];
22 for (const pref of res.data.preferences) {
23 if (predicate.isValidAdultContentPref(pref)) {
24@@ -1279,14 +1282,14 @@ class Agent extends xrpc_1.XrpcClient {
25 async updatePreferences(cb) {
26 try {
27 await __classPrivateFieldGet(this, _Agent_prefsLock, "f").acquireAsync();
28- const res = await this.app.bsky.actor.getPreferences({});
29+ const res = await this.app.bsky.actor.getPreferences({}, {headers: {'atproto-proxy': ''}});
30 const newPrefs = cb(res.data.preferences);
31 if (newPrefs === false) {
32 return res.data.preferences;
33 }
34 await this.app.bsky.actor.putPreferences({
35 preferences: newPrefs,
36- });
37+ }, {headers: {'atproto-proxy': ''}});
38 return newPrefs;
39 }
40 finally {