Page MenuHomePhabricator

Failing to create a newsletter should not add a row to the database
Closed, ResolvedPublicBUG REPORT

Description

Per @taavi on https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Newsletter/+/446642/

If a newsletter page fails to be created (due to an abuse filter or for some other reason), it still inserts a row to the nw_newsletters table with nl_active = 0. That table has an unique key on nl_name, which means the name can't be re-used again.