Delete Community needs to clear its contact info record, too

This commit is contained in:
2026-03-14 22:31:33 -06:00
parent 54463cb65d
commit ac546fdc56
+4 -1
View File
@@ -611,7 +611,10 @@ func (c *Community) Delete(ctx context.Context, u *User, ipaddr string, backgrou
if err == nil {
_, err = tx.ExecContext(ctx, "DELETE FROM propcomm WHERE cid = ?", c.Id)
if err == nil {
_, err = tx.ExecContext(ctx, "DELETE FROM communities WHERE commid = ?", c.Id)
_, err = tx.ExecContext(ctx, "DELETE FROM contacts WHERE owner_commid = ?", c.Id)
if err == nil {
_, err = tx.ExecContext(ctx, "DELETE FROM communities WHERE commid = ?", c.Id)
}
}
}
}