Bluesky app fork with some witchin' additions 馃挮
1diff --git a/dist/moderation/decision.js b/dist/moderation/decision.js
2index aaac177..d27c0be 100644
3--- a/dist/moderation/decision.js
4+++ b/dist/moderation/decision.js
5@@ -67,6 +67,8 @@ class ModerationDecision {
6 ui(context) {
7 const ui = new ui_1.ModerationUI();
8 for (const cause of this.causes) {
9+ if (cause?.label?.val === '!no-unauthenticated') continue;
10+
11 if (cause.type === 'blocking' ||
12 cause.type === 'blocked-by' ||
13 cause.type === 'block-other') {
14diff --git a/dist/agent.js b/dist/agent.js
15index c486fb7..d77a845 100644
16--- a/dist/agent.js
17+++ b/dist/agent.js
18@@ -99,6 +99,9 @@ class Agent extends xrpc_1.XrpcClient {
19 if (this.proxy && !headers.has('atproto-proxy')) {
20 headers.set('atproto-proxy', this.proxy);
21 }
22+ if (headers.get('atproto-proxy') === '') {
23+ headers.delete('atproto-proxy');
24+ }
25 // Merge the labelers header of this particular request with the app &
26 // instance labelers.
27 headers.set('atproto-accept-labelers', [
28@@ -597,7 +600,7 @@ class Agent extends xrpc_1.XrpcClient {
29 hideAllFeeds: false,
30 },
31 };
32- const res = await this.app.bsky.actor.getPreferences({});
33+ const res = await this.app.bsky.actor.getPreferences({}, {headers: {'atproto-proxy': ''}});
34 const labelPrefs = [];
35 for (const pref of res.data.preferences) {
36 if (predicate.isValidAdultContentPref(pref)) {
37@@ -1279,14 +1282,14 @@ class Agent extends xrpc_1.XrpcClient {
38 async updatePreferences(cb) {
39 try {
40 await __classPrivateFieldGet(this, _Agent_prefsLock, "f").acquireAsync();
41- const res = await this.app.bsky.actor.getPreferences({});
42+ const res = await this.app.bsky.actor.getPreferences({}, {headers: {'atproto-proxy': ''}});
43 const newPrefs = cb(res.data.preferences);
44 if (newPrefs === false) {
45 return res.data.preferences;
46 }
47 await this.app.bsky.actor.putPreferences({
48 preferences: newPrefs,
49- });
50+ }, {headers: {'atproto-proxy': ''}});
51 return newPrefs;
52 }
53 finally {