|
|
@ -25,7 +25,7 @@ def read(id):
|
|
|
|
post = Post.select().where(Post.id == id).first()
|
|
|
|
post = Post.select().where(Post.id == id).first()
|
|
|
|
if post:
|
|
|
|
if post:
|
|
|
|
if not post.approved:
|
|
|
|
if not post.approved:
|
|
|
|
if not is_moderator(get_session_user()):
|
|
|
|
if not User.select().where(User.username == get_session_user()).first().moderator:
|
|
|
|
flash("That post has not been approved.", "is-warning")
|
|
|
|
flash("That post has not been approved.", "is-warning")
|
|
|
|
return redirect("/")
|
|
|
|
return redirect("/")
|
|
|
|
qr_uri = f'wownero:{post.address}?tx_description=suchwow%20post%20{post.id}'
|
|
|
|
qr_uri = f'wownero:{post.address}?tx_description=suchwow%20post%20{post.id}'
|
|
|
|