support hashtags p.2
This commit is contained in:
parent
917b281e38
commit
4f3056c9ef
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue