flash a notice so the user knows their syndication links have actually updated
This commit is contained in:
parent
d6d5e5056c
commit
af6bcdfcf6
1 changed files with 6 additions and 0 deletions
|
@ -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'))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue