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

Function getThread

src/api/getThread.ts:27–202  ·  view source on GitHub ↗
({
	channelId,
	threadId,
	archived,
	// `threadBeforeRefresh` could be passed when refreshing a thread.
	// `threadBeforeRefresh` feature isn't current used, though it
	// could potentially be used in some hypothetical future.
	// It would enable fetching only the "incremental" update
	// for the thread instead of fetching all of its comments.
	threadBeforeRefresh,
	// `afterCommentId`/`afterCommentNumber` feature isn't currently used,
	// though it could potentially be used in some hypothetical future.
	// It would enable fetching only the "incremental" update
	// for the thread instead of fetching all of its comments.
	afterCommentId,
	afterCommentNumber,
	grammarCorrection,
	censoredWords,
	locale,
	messages,
	originalDomain,
	userData,
	userSettings,
	dataSource
}: Omit<GetThreadParameters, 'proxyUrl'> & {
	grammarCorrection: UserSettingsJson['grammarCorrection'];
	censoredWords: UserSettingsJson['censoredWords'];
	locale: UserSettingsJson['locale'];
	messages: Messages;
	originalDomain?: string;
	userData: UserData;
	userSettings: UserSettings;
	dataSource: DataSource;
})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

ThreadCreateCommentFunction · 0.50
updateThreadFunction · 0.50
loadThreadPageFunction · 0.50
useCreateCommentOrThreadFunction · 0.50

Calls 7

getProxyUrlFunction · 0.85
addCommentPropsFunction · 0.85
addThreadPropsFunction · 0.85
getCommentTextPreviewFunction · 0.85
setRepliesOnCommentsFunction · 0.85
setDerivedThreadPropsFunction · 0.85

Tested by

no test coverage detected