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

@@ -741,7 +741,9 @@ class Bot:
if nip89content.get("name"):
info += "Name: " + nip89content.get("name") + "\n"
if nip89content.get("image"):
if nip89content.get("picture"):
info += nip89content.get("picture") + "\n"
elif nip89content.get("image"):
info += nip89content.get("image") + "\n"
if nip89content.get("about"):
info += "About:\n" + nip89content.get("about") + "\n\n"