Add attribution for starter pack follows (#9834)
This commit is contained in:
@@ -4,13 +4,18 @@ import {
|
||||
type AppBskyGraphGetFollows,
|
||||
type BskyAgent,
|
||||
type ComAtprotoRepoApplyWrites,
|
||||
type ComAtprotoRepoStrongRef,
|
||||
} from '@atproto/api'
|
||||
import {TID} from '@atproto/common-web'
|
||||
import chunk from 'lodash.chunk'
|
||||
|
||||
import {until} from '#/lib/async/until'
|
||||
|
||||
export async function bulkWriteFollows(agent: BskyAgent, dids: string[]) {
|
||||
export async function bulkWriteFollows(
|
||||
agent: BskyAgent,
|
||||
dids: string[],
|
||||
via?: ComAtprotoRepoStrongRef.Main,
|
||||
) {
|
||||
const session = agent.session
|
||||
|
||||
if (!session) {
|
||||
@@ -22,6 +27,7 @@ export async function bulkWriteFollows(agent: BskyAgent, dids: string[]) {
|
||||
$type: 'app.bsky.graph.follow',
|
||||
subject: did,
|
||||
createdAt: new Date().toISOString(),
|
||||
via,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user