Add missing package attribution to remove()

This commit is contained in:
rubenwardy 2022-02-14 01:21:24 +00:00
parent a70454cf1f
commit 9200d7becd

@ -422,7 +422,7 @@ def remove(package):
url = url_for("users.profile", username=package.author.username)
msg = "Deleted {}, reason={}".format(package.title, reason)
addNotification(package.maintainers, current_user, NotificationType.PACKAGE_EDIT, msg, url, package)
addAuditLog(AuditSeverity.EDITOR, current_user, msg, url)
addAuditLog(AuditSeverity.EDITOR, current_user, msg, url, package)
db.session.commit()
flash(gettext("Deleted package"), "success")