Do some renaming for clarity

This commit is contained in:
Eric Bailey
2024-08-05 09:59:48 -05:00
parent 571d00cf41
commit dcb6aa41cc
6 changed files with 37 additions and 33 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ import {
import {AtUri} from '@atproto/api'
import {logger} from '#/logger'
import {ThreadgateSetting} from '#/state/queries/threadgate'
import {ThreadgateAllowUISetting} from '#/state/queries/threadgate'
import {isNetworkError} from 'lib/strings/errors'
import {shortenLinks, stripInvalidMentions} from 'lib/strings/rich-text-manip'
import {isNative, isWeb} from 'platform/detection'
@@ -61,7 +61,7 @@ interface PostOpts {
extLink?: ExternalEmbedDraft
images?: ImageModel[]
labels?: string[]
threadgate?: ThreadgateSetting[]
threadgate?: ThreadgateAllowUISetting[]
onStateChange?: (state: string) => void
langs?: string[]
}
@@ -277,7 +277,7 @@ export async function post(agent: BskyAgent, opts: PostOpts) {
export async function createThreadgate(
agent: BskyAgent,
postUri: string,
threadgate: ThreadgateSetting[],
threadgate: ThreadgateAllowUISetting[],
) {
let allow: (
| AppBskyFeedThreadgate.MentionRule