MCPcopy Create free account
hub / github.com/catamphetamine/anychan / fixThreadsData

Function fixThreadsData

src/UserData/fixThreadCommentData.ts:77–154  ·  view source on GitHub ↗
({
	threadsCollection,
	commentsCollection,
	createThreadRecord,
	createCommentRecord,
	collectionType,
	userData
}: {
	threadsCollection: UserDataCollection,
	commentsCollection: UserDataCollection,
	createThreadRecord:(channelId: Channel['id'], threadId: Thread['id'], threadData: any) => void,
	createCommentRecord: (channelId: Channel['id'], threadId: Thread['id'], commentId: Comment['id'], commentData: any) => void,
	collectionType: typeof CHANNEL_THREAD_COMMENT_DATA_COLLECTION_TYPE | typeof CHANNEL_THREAD_COMMENT_IDS_COLLECTION_TYPE,
	userData: UserData
})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

fixThreadCommentDataFunction · 0.85

Calls 11

isIncludedInCommentsDataFunction · 0.85
isIncludedInThreadsDataFunction · 0.85
createEmptyThreadsDataFunction · 0.85
getCommentDataFunction · 0.85
addThreadDataFunction · 0.85
createThreadRecordFunction · 0.85
getThreadIdsFunction · 0.85
createCommentRecordFunction · 0.85
getThreadDataFunction · 0.85
getCollectionDataMethod · 0.80

Tested by

no test coverage detected