deprecate "image" in nip89, use picture instead

This commit is contained in:
Believethehype
2024-11-22 11:14:39 +01:00
parent 22d07982a3
commit b88f4a54ca
79 changed files with 220 additions and 270 deletions

View File

@@ -72,7 +72,7 @@ def run_dvm(identifier, announce):
# We set a d tag. We need the dtag so if we want to update or delete the announcement, relays know which event is meant
# You can choose a dtag you like. Here we build a hash from identiier, name, key and image and store it in the .env file.
# So even if you change the name or image, it will now use the dtag from the env file until you delete it.
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["image"])
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["picture"])
# We dump the nip89info struct from above to the content
nip89config.CONTENT = json.dumps(nip89info)

View File

@@ -131,7 +131,7 @@ def run_dvm(identifier, announce):
# We now create or Nip89Config object
nip89config = NIP89Config()
nip89config.KIND = kind
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["image"])
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["picture"])
nip89config.CONTENT = json.dumps(nip89info)

View File

@@ -106,7 +106,7 @@ def run_dvm(identifier, announce):
# We now create or Nip89Config object
nip89config = NIP89Config()
nip89config.KIND = kind
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["image"])
nip89config.DTAG = check_and_set_d_tag(identifier, name, dvm_config.PRIVATE_KEY, nip89info["picture"])
nip89config.CONTENT = json.dumps(nip89info)