Skip to content

Commit

Permalink
fix rejection by duplicate alert
Browse files Browse the repository at this point in the history
  • Loading branch information
ohld committed Jun 10, 2024
1 parent be5c40b commit 3c76d7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tgbot/handlers/upload/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
from src.tgbot.constants import UserType
from src.tgbot.handlers.treasury.constants import TrxType
from src.tgbot.handlers.treasury.payments import pay_if_not_paid_with_alert
from src.tgbot.handlers.upload.constants import SUPPORTED_LANGUAGES
from src.tgbot.handlers.upload.service import (
get_meme_raw_upload_by_id,
update_meme_by_upload_id,
)
from src.tgbot.user_info import get_user_info
from src.tgbot.handlers.upload.constants import SUPPORTED_LANGUAGES

UPLOADED_MEME_REIVIEW_CALLBACK_DATA_PATTERN = "upload:{upload_id}:review:{action}"
UPLOADED_MEME_REVIEW_CALLBACK_DATA_REGEXP = r"upload:(\d+):review:(\w+)"
Expand Down Expand Up @@ -101,8 +101,8 @@ async def uploaded_meme_auto_review(

# set like for the uploaded meme
await create_user_meme_reaction(
meme_upload["user_id"],
duplicate_meme_id,
meme["id"],
"uploaded_meme",
reaction_id=1,
reacted_at=datetime.utcnow(),
Expand Down

0 comments on commit 3c76d7b

Please sign in to comment.