mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
redirect to accounts page after successful add
This commit is contained in:
parent
4680bc19c1
commit
0294f8e004
1 changed files with 1 additions and 0 deletions
1
webui.py
1
webui.py
|
@ -182,6 +182,7 @@ def bot_accounts_add():
|
|||
c.execute("INSERT INTO `bot_learned_accounts` (`bot_id`, `fedi_id`) VALUES (%s, %s)", (session['bot'], request.form['account']))
|
||||
c.close()
|
||||
mysql.connection.commit()
|
||||
return redirect("/bot/accounts/{}".format(session['bot']), 303)
|
||||
else:
|
||||
error = "Couldn't access ActivityPub outbox. {} may require authenticated fetches, which FediBooks doesn't support yet."
|
||||
return render_template("bot_accounts_add.html", error = error)
|
||||
|
|
Loading…
Reference in a new issue