From 4f3056c9ef6556dca1145b22e56d16c7b3265fdd Mon Sep 17 00:00:00 2001 From: user Date: Wed, 5 Feb 2025 10:00:25 +0300 Subject: [PATCH] support hashtags p.2 --- app/core/content/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/core/content/utils.py b/app/core/content/utils.py index ca23298..fa0a9df 100644 --- a/app/core/content/utils.py +++ b/app/core/content/utils.py @@ -49,7 +49,8 @@ async def create_metadata_for_item( db_session, title: str = None, cover_url: str = None, - authors: list = None + authors: list = None, + hashtags: list = [], ) -> StoredContent: assert title, "No title provided" # assert cover_url, "No cover_url provided" @@ -58,7 +59,7 @@ async def create_metadata_for_item( item_metadata = { 'name': title, - 'description': '@MY Content Ownership Proof NFT', + 'description': ' '.join([f"#{_h}" for _h in hashtags]), 'attributes': [ # { # 'trait_type': 'Artist',