diff options
author | Eric Bailey <git@esb.lol> | 2025-02-11 16:07:10 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-11 14:07:10 -0800 |
commit | 459611ca7a0d1559e3c9373ef9a61ea8e4c1e2f7 (patch) | |
tree | 12808a7ee8f9abce9bf06c50b047a9c426fc04f1 /src/state/queries/threadgate/util.ts | |
parent | 03f75e8ff49d8fa0f7b96321ba8d3a5dd8841703 (diff) | |
download | voidsky-459611ca7a0d1559e3c9373ef9a61ea8e4c1e2f7.tar.zst |
[APP-1031] Add new followerRule to threadgate settings (#7681)
* Add new followerRule to threadgate settings * Handle WhoCanReply copy * Handle follow case * fix ci * Revert "Handle follow case" This reverts commit bc454dad896fe577bec91f3d65d971ad9e0fec8d. * Hide Follow button if followedBy rule enabled * Revert "Revert "Handle follow case"" This reverts commit cadc46d2dc50120424ed460943775c58efc59c4d. --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
Diffstat (limited to 'src/state/queries/threadgate/util.ts')
-rw-r--r-- | src/state/queries/threadgate/util.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/queries/threadgate/util.ts b/src/state/queries/threadgate/util.ts index 09ae0a0c1..4459eddbe 100644 --- a/src/state/queries/threadgate/util.ts +++ b/src/state/queries/threadgate/util.ts @@ -43,6 +43,8 @@ export function threadgateRecordToAllowUISetting( setting = {type: 'mention'} } else if (allow.$type === 'app.bsky.feed.threadgate#followingRule') { setting = {type: 'following'} + } else if (allow.$type === 'app.bsky.feed.threadgate#followerRule') { + setting = {type: 'followers'} } else if (allow.$type === 'app.bsky.feed.threadgate#listRule') { setting = {type: 'list', list: allow.list} } @@ -79,6 +81,8 @@ export function threadgateAllowUISettingToAllowRecordValue( allow.push({$type: 'app.bsky.feed.threadgate#mentionRule'}) } else if (rule.type === 'following') { allow.push({$type: 'app.bsky.feed.threadgate#followingRule'}) + } else if (rule.type === 'followers') { + allow.push({$type: 'app.bsky.feed.threadgate#followerRule'}) } else if (rule.type === 'list') { allow.push({ $type: 'app.bsky.feed.threadgate#listRule', |