'Please specify a user to toggle on the allowlist by replying to their message or providing a user ID/username.\nUsage: <code>/fallowlist [user]</code>',
'html'
)
end
-- Check if already allowlisted
localexisting=ctx.db.execute(
'SELECT 1 FROM federation_allowlist WHERE federation_id = $1 AND user_id = $2',
{fed.id,target_id}
)
ifexistingand#existing>0then
-- Remove from allowlist
ctx.db.execute(
'DELETE FROM federation_allowlist WHERE federation_id = $1 AND user_id = $2',