mirror of
https://github.com/jwinterm/tubbymemes.git
synced 2026-10-17 05:21:28 +02:00
enforce wownero address set on user before posting memes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user