flash a notice so the user knows their syndication links have actually updated

This commit is contained in:
Kyle Mahan 2016-04-21 20:07:52 +00:00
parent d6d5e5056c
commit af6bcdfcf6

View file

@ -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'))