[cohost] support 'attachment-row' blocks (#4483)
This commit is contained in:
@@ -82,6 +82,11 @@ class CohostExtractor(Extractor):
|
|||||||
file = block["attachment"].copy()
|
file = block["attachment"].copy()
|
||||||
file["shared"] = shared
|
file["shared"] = shared
|
||||||
files.append(file)
|
files.append(file)
|
||||||
|
elif type == "attachment-row":
|
||||||
|
for att in block["attachments"]:
|
||||||
|
file = att["attachment"].copy()
|
||||||
|
file["shared"] = shared
|
||||||
|
files.append(file)
|
||||||
elif type == "markdown":
|
elif type == "markdown":
|
||||||
content.append(block["markdown"]["content"])
|
content.append(block["markdown"]["content"])
|
||||||
elif type == "ask":
|
elif type == "ask":
|
||||||
|
|||||||
Reference in New Issue
Block a user