[cohost] support 'attachment-row' blocks (#4483)

pull/4791/merge
Mike Fährmann 1 week ago
parent 29279f07d4
commit 0d67d54162
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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":

Loading…
Cancel
Save