MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / flagThread

Method flagThread

server/src/addie/thread-service.ts:385–390  ·  view source on GitHub ↗

* Flag a thread

(threadId: string, reason: string)

Source from the content-addressed store, hash-verified

383 * Flag a thread
384 */
385 async flagThread(threadId: string, reason: string): Promise<void> {
386 await query(
387 `UPDATE addie_threads SET flagged = TRUE, flag_reason = $2, updated_at = NOW() WHERE thread_id = $1`,
388 [threadId, reason]
389 );
390 }
391
392 /**
393 * Merge keys into a thread's context JSONB (top-level merge, not deep)

Callers 10

createAddieAdminRouterFunction · 0.80
handleUserMessageFunction · 0.80
handleAppMentionFunction · 0.80
handleDirectMessageFunction · 0.80
handleActiveThreadReplyFunction · 0.80
handleChannelMessageFunction · 0.80
runShadowEvaluatorJobFunction · 0.80
backfillFunction · 0.80

Calls 1

queryFunction · 0.85

Tested by

no test coverage detected