mirror of https://github.com/zulip/zulip.git
claim_attachment: Remove the stale 'user_profile' parameter.
This commit removes the unused 'user_profile' parameter of the 'claim_attachement' function.
This commit is contained in:
parent
206c8ffedc
commit
508c5611d1
|
@ -53,7 +53,7 @@ def do_claim_attachments(
|
|||
|
||||
claimed = True
|
||||
attachment = claim_attachment(
|
||||
user_profile, path_id, message, is_message_realm_public, is_message_web_public
|
||||
path_id, message, is_message_realm_public, is_message_web_public
|
||||
)
|
||||
if not isinstance(message, ScheduledMessage):
|
||||
# attachment update events don't say anything about scheduled messages,
|
||||
|
|
|
@ -85,7 +85,6 @@ def upload_message_attachment(
|
|||
|
||||
|
||||
def claim_attachment(
|
||||
user_profile: UserProfile,
|
||||
path_id: str,
|
||||
message: Union[Message, ScheduledMessage],
|
||||
is_message_realm_public: bool,
|
||||
|
|
|
@ -168,7 +168,6 @@ class ExportFile(ZulipTestCase):
|
|||
)
|
||||
attachment_path_id = url.replace("/user_uploads/", "")
|
||||
claim_attachment(
|
||||
user_profile=user_profile,
|
||||
path_id=attachment_path_id,
|
||||
message=message,
|
||||
is_message_realm_public=True,
|
||||
|
@ -388,7 +387,6 @@ class RealmImportExportTest(ExportFile):
|
|||
)
|
||||
attachment_path_id = url.replace("/user_uploads/", "")
|
||||
attachment = claim_attachment(
|
||||
user_profile=user_profile,
|
||||
path_id=attachment_path_id,
|
||||
message=Message.objects.get(id=personal_message_id),
|
||||
is_message_realm_public=True,
|
||||
|
|
Loading…
Reference in New Issue