migrate the threadgate and postgate records to the pds client

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-03 23:11:47 +03:00
parent a6682ebf1d
commit 0c8cdba703
10 changed files with 214 additions and 180 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ import {
} from '@atproto/api'
import {TID} from '@atproto/common-web'
import {type Client} from '@atproto/lex'
import {toDatetimeString} from '@atproto/syntax'
import {RichText} from '@bsky.app/sdk/richtext'
import {t} from '@lingui/core/macro'
import {type QueryClient} from '@tanstack/react-query'
@@ -145,7 +146,7 @@ export async function post(
collection: 'app.bsky.feed.threadgate',
rkey: rkey,
value: createThreadgateRecord({
createdAt: now.toISOString(),
createdAt: toDatetimeString(now),
post: uri,
allow: threadgateAllowUISettingToAllowRecordValue(thread.threadgate),
}),