conference sidebox is now filled in

This commit is contained in:
2026-01-26 16:11:05 -07:00
parent 0dd66709d9
commit c83ac65f7e
8 changed files with 43 additions and 21 deletions
+4 -2
View File
@@ -24,11 +24,13 @@ import (
*/
func AmIsEmailAddressBanned(ctx context.Context, address string) (bool, error) {
row := amdb.QueryRowContext(ctx, "SELECT by_uid FROM emailban WHERE address = ?", address)
switch row.Err() {
var uid int32
err := row.Scan(&uid)
switch err {
case nil:
return true, nil
case sql.ErrNoRows:
return false, nil
}
return false, row.Err()
return false, err
}