From 490082cc09b66847805a050746032801875236ad Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 11 May 2021 21:12:18 -0700 Subject: [PATCH] just post to discord for now --- suchwow/routes/post.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/suchwow/routes/post.py b/suchwow/routes/post.py index dc4156a..e732788 100644 --- a/suchwow/routes/post.py +++ b/suchwow/routes/post.py @@ -116,16 +116,18 @@ def approve(id): post_webhook(f"Post [{post.id}]({url}) approved :white_check_mark: by `{get_session_user()}` :fieri_parrot:") flash("Approved") if current_app.config["DEBUG"] is False: - _r = None - _d = None - if not post.to_reddit: - _r = make_post(post) - if not post.to_discord: - _d = post_discord_webhook(post) - if _r and _d: - post_webhook(f"Post [{post.id}]({url}) submitted :dab_parrot: to Reddit and Discord.") - else: - post_webhook(f"Post [{post.id}]({url}) failed :this-is-fine-fire: to post to socials...Reddit: {_r} - Discord: {_d}") + # _r = None + # _d = None + # if not post.to_reddit: + # _r = make_post(post) + # if not post.to_discord: + # _d = post_discord_webhook(post) + # if _r and _d: + # post_webhook(f"Post [{post.id}]({url}) submitted :dab_parrot: to Reddit and Discord.") + # else: + # post_webhook(f"Post [{post.id}]({url}) failed :this-is-fine-fire: to post to socials...Reddit: {_r} - Discord: {_d}") + post_discord_webhook(post) + post_webhook(f"Post [{post.id}]({url}) submitted :dab_parrot: to Discord.") return redirect(url_for("mod_queue")) else: flash("You can't approve this")