Skip to content

Commit

Permalink
fixup! move server_name fetch in synadm media delete down
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonChen666 committed Apr 3, 2024
1 parent 17d4d92 commit cd37411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synadm/cli/media.py
Expand Up @@ -274,7 +274,8 @@ def media_delete_cmd(helper, media_id, before_days, before, before_ts,
click.echo("Combination of --media-id and --size not valid.")
media_deleted = None
elif media_id:
server_name = helper.retrieve_homeserver_name(helper.config["base_url"])
server_name = helper.retrieve_homeserver_name(
helper.config["base_url"])
media_deleted = helper.api.media_delete(server_name, media_id)
else:
media_deleted = helper.api.media_delete_by_date_or_size(
Expand Down

0 comments on commit cd37411

Please sign in to comment.