enforce wownero address set on user before posting memes

main
lza_menace 3 years ago
parent 7f58c2e321
commit 656f3a7622

@ -43,6 +43,9 @@ def publish():
if not current_user.is_authenticated: if not current_user.is_authenticated:
flash('You need to connect your wallet first.', 'warning') flash('You need to connect your wallet first.', 'warning')
return redirect(url_for('meme.index')) 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 meme = None
try: try:
client = ipfsApi.Client('127.0.0.1', 5001) client = ipfsApi.Client('127.0.0.1', 5001)

Loading…
Cancel
Save