Lightweight containerized prosody tooling + moved auth scripts + xmpp reconnect/auth stabilization
This commit is contained in:
@@ -240,13 +240,17 @@ async def send_reaction(
|
||||
):
|
||||
base = getattr(settings, "SIGNAL_HTTP_URL", "http://signal:8080").rstrip("/")
|
||||
sender_number = settings.SIGNAL_NUMBER
|
||||
if not recipient_uuid or not target_timestamp:
|
||||
normalized_recipient = normalize_signal_recipient(recipient_uuid)
|
||||
normalized_target_author = normalize_signal_recipient(
|
||||
str(target_author or normalized_recipient)
|
||||
)
|
||||
if not normalized_recipient or not target_timestamp:
|
||||
return False
|
||||
|
||||
payload = {
|
||||
"recipient": recipient_uuid,
|
||||
"recipient": normalized_recipient,
|
||||
"reaction": str(emoji or ""),
|
||||
"target_author": str(target_author or recipient_uuid),
|
||||
"target_author": normalized_target_author,
|
||||
"timestamp": int(target_timestamp),
|
||||
"remove": bool(remove),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user