data_import: Skip Slack "Posts" which we don't otherwise support.

This commit is contained in:
Alex Vandiver
2023-07-25 19:29:42 +00:00
committed by Tim Abbott
parent d574129a29
commit c3cf1cd9d8

View File

@@ -822,6 +822,11 @@ def get_messages_iterator(
# change this to point to slackbot instead, but
# skipping those messages is simpler.
continue
if message.get("mimetype") == "application/vnd.slack-docs":
# This is a Slack "Post" which is HTML-formatted,
# and we don't have a clean way to import at the
# moment. We skip them on import.
continue
if dir_name in added_channels:
message["channel_name"] = dir_name
elif dir_name in added_mpims: