| 3 |
"query": "SELECT f.id AS flag_id, f.post_id, p.thread_id,\n t.title AS thread_title,\n cat.slug AS category_slug,\n u.username AS flagger_username,\n f.reason, f.detail,\n f.created_at AS \"created_at: chrono::DateTime<chrono::Utc>\"\n FROM post_flags f\n JOIN posts p ON p.id = f.post_id\n JOIN threads t ON t.id = p.thread_id\n JOIN categories cat ON cat.id = t.category_id\n JOIN users u ON u.mnw_account_id = f.flagger_id\n WHERE cat.community_id = $1 AND f.resolved_at IS NULL\n ORDER BY f.created_at DESC\n LIMIT $2", |