Skip to content

Commit

Permalink
[!] fix dotbit ipfs, ipns format
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongFuze committed Nov 13, 2024
1 parent 1977dbb commit da7f684
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resolver/dotbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author: Zella Zhong
Date: 2024-11-08 18:07:41
LastEditors: Zella Zhong
LastEditTime: 2024-11-12 20:18:09
LastEditTime: 2024-11-13 15:26:38
FilePath: /data_service/src/resolver/dotbit.py
Description:
'''
Expand Down Expand Up @@ -481,10 +481,10 @@ async def get_texts_by_name(domain_name):
elif key.startswith("dweb"):
text_key = key.removeprefix("dweb.")
if text_key.find("ipns") != -1:
texts["ipns"] = value
texts["ipns"] = "ipns://{}".format(value)
contenthash = value
elif text_key.find("ipfs") != -1:
texts["ipfs"] = value
texts["ipfs"] = "ipfs://{}".format(value)
contenthash = value
else:
texts[text_key] = value
Expand Down

0 comments on commit da7f684

Please sign in to comment.