From 656f3a7622435e8e20a334a4a9991e87ddb103a2 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sat, 8 Jan 2022 22:03:38 -0800 Subject: [PATCH] enforce wownero address set on user before posting memes --- suchwowx/routes/meme.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/suchwowx/routes/meme.py b/suchwowx/routes/meme.py index a2f9281..082ef74 100644 --- a/suchwowx/routes/meme.py +++ b/suchwowx/routes/meme.py @@ -43,6 +43,9 @@ def publish(): if not current_user.is_authenticated: flash('You need to connect your wallet first.', 'warning') return redirect(url_for('meme.index')) + if not current_user.wownero_address: + flash('You need to specify your Wownero wallet address first.', 'warning') + return redirect(url_for('user.show', handle=current_user.handle)) meme = None try: client = ipfsApi.Client('127.0.0.1', 5001)