From fd956dd27c99c35c57007ebc6c9f9a71ce5baaba Mon Sep 17 00:00:00 2001 From: koalasat Date: Sun, 10 Aug 2025 16:16:10 +0200 Subject: [PATCH] Remove expiration key --- api/nostr.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/api/nostr.py b/api/nostr.py index 9b96ab6c..0efa222c 100644 --- a/api/nostr.py +++ b/api/nostr.py @@ -1,8 +1,6 @@ import pygeohash import hashlib import uuid -import random -from datetime import datetime, timedelta from secp256k1 import PrivateKey from asgiref.sync import sync_to_async @@ -59,22 +57,6 @@ class Nostr: ] ), Tag.parse(["status", str(order.status)]), - Tag.parse( - [ - "expiration", - str( - int( - ( - datetime.now() - + timedelta(days=14) - + timedelta( - seconds=random.randint(0, 14 * 24 * 60 * 60) - ) - ).timestamp() - ) - ), - ] - ), ] await client.send_private_msg(PublicKey.parse(robot.nostr_pubkey), text, tags)