diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-10-16 16:37:35 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-10-17 17:31:48 +0200 |
commit | 34800e5ecf985cb22987ed8acbd0584c3bb4a4fa (patch) | |
tree | 7c606f89edba2f52044c1696f602889d0b6c8ec0 | |
parent | 092e00f4687dced8f4174891dd4cabd6d4c2617d (diff) | |
download | aurweb-34800e5ecf985cb22987ed8acbd0584c3bb4a4fa.tar.xz |
notify: Fix welcome/flag notifications
Fixes two regressions introduced in commit 6681e56 (notify: Do not wrap
references, 2015-10-03).
Fixes FS#46742.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rwxr-xr-x | scripts/notify.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/notify.py b/scripts/notify.py index 42a657e..ab65277 100755 --- a/scripts/notify.py +++ b/scripts/notify.py @@ -111,7 +111,7 @@ def welcome(cur, uid): 'password for your new account, please click the link [1] below. ' \ 'If the link does not work, try copying and pasting it into your ' \ 'browser.' - body = '[1] ' + aur_location + '/passreset/?resetkey=' + resetkey + refs = '[1] ' + aur_location + '/passreset/?resetkey=' + resetkey send_notification([to], subject, body, refs) @@ -151,11 +151,11 @@ def flag(cur, uid, pkgbase_id): subject = 'AUR Out-of-date Notification for %s' % (pkgbase) body = 'Your package %s [1] has been flagged out-of-date by %s [2]:' % \ (pkgbase, user) - body += '\n\n' + text + '\n\n' - body += '[1] ' + pkgbase_uri + '\n' - body += '[2] ' + user_uri + body += '\n\n' + text + refs = '[1] ' + pkgbase_uri + '\n' + refs += '[2] ' + user_uri - send_notification(to, subject, body) + send_notification(to, subject, body, refs) def delete(cur, uid, old_pkgbase_id, new_pkgbase_id=None): user = username_from_id(cur, uid) |