actions: Split out zerver.actions.uploads.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit e230ea2598)
This commit is contained in:
Anders Kaseorg
2022-04-14 14:43:26 -07:00
committed by Tim Abbott
parent 025219da16
commit b8567d8d8f
7 changed files with 106 additions and 95 deletions

View File

@@ -1142,7 +1142,7 @@ def create_attachment(
realm=realm,
size=file_size,
)
from zerver.lib.actions import notify_attachment_update
from zerver.actions.uploads import notify_attachment_update
notify_attachment_update(user_profile, "add", attachment.to_dict())
return True