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:
Prakhar Pratyush 2024-05-20 22:23:28 +05:30 committed by Tim Abbott
parent 206c8ffedc
commit 508c5611d1
3 changed files with 1 additions and 4 deletions

View File

@ -53,7 +53,7 @@ def do_claim_attachments(
claimed = True claimed = True
attachment = claim_attachment( 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): if not isinstance(message, ScheduledMessage):
# attachment update events don't say anything about scheduled messages, # attachment update events don't say anything about scheduled messages,

View File

@ -85,7 +85,6 @@ def upload_message_attachment(
def claim_attachment( def claim_attachment(
user_profile: UserProfile,
path_id: str, path_id: str,
message: Union[Message, ScheduledMessage], message: Union[Message, ScheduledMessage],
is_message_realm_public: bool, is_message_realm_public: bool,

View File

@ -168,7 +168,6 @@ class ExportFile(ZulipTestCase):
) )
attachment_path_id = url.replace("/user_uploads/", "") attachment_path_id = url.replace("/user_uploads/", "")
claim_attachment( claim_attachment(
user_profile=user_profile,
path_id=attachment_path_id, path_id=attachment_path_id,
message=message, message=message,
is_message_realm_public=True, is_message_realm_public=True,
@ -388,7 +387,6 @@ class RealmImportExportTest(ExportFile):
) )
attachment_path_id = url.replace("/user_uploads/", "") attachment_path_id = url.replace("/user_uploads/", "")
attachment = claim_attachment( attachment = claim_attachment(
user_profile=user_profile,
path_id=attachment_path_id, path_id=attachment_path_id,
message=Message.objects.get(id=personal_message_id), message=Message.objects.get(id=personal_message_id),
is_message_realm_public=True, is_message_realm_public=True,