mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
data_import: Skip Slack "Posts" which we don't otherwise support.
This commit is contained in:
committed by
Tim Abbott
parent
d574129a29
commit
c3cf1cd9d8
@@ -822,6 +822,11 @@ def get_messages_iterator(
|
|||||||
# change this to point to slackbot instead, but
|
# change this to point to slackbot instead, but
|
||||||
# skipping those messages is simpler.
|
# skipping those messages is simpler.
|
||||||
continue
|
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:
|
if dir_name in added_channels:
|
||||||
message["channel_name"] = dir_name
|
message["channel_name"] = dir_name
|
||||||
elif dir_name in added_mpims:
|
elif dir_name in added_mpims:
|
||||||
|
|||||||
Reference in New Issue
Block a user