From af6bcdfcf6c97c1abb2d34a1a475c6fd925f79c0 Mon Sep 17 00:00:00 2001 From: Kyle Mahan Date: Thu, 21 Apr 2016 20:07:52 +0000 Subject: [PATCH] flash a notice so the user knows their syndication links have actually updated --- woodwind/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/woodwind/views.py b/woodwind/views.py index 043191d..2ec325c 100644 --- a/woodwind/views.py +++ b/woodwind/views.py @@ -308,6 +308,12 @@ def micropub_callback(resp): @views.route('/micropub-update') def micropub_update(): update_micropub_syndicate_to() + + syndicate_to = flask_login.current_user.get_setting('syndicate-to', []) + + flask.flash('Updated syndication targets: {}'.format(', '.join([ + t.get('name') if isinstance(t, dict) else t for t in syndicate_to]))) + return flask.redirect(flask.request.args.get('next') or flask.url_for('.index'))