diff options
| author | 2020-07-14 17:28:53 +0200 | |
|---|---|---|
| committer | 2020-07-14 17:30:35 +0200 | |
| commit | 6e48d666b31d13d801c394b527ce545b039b478f (patch) | |
| tree | 61956974305e543bca4f4210221a3a3faa46b39f /tests/test_helpers.py | |
| parent | Incidents: add `download_file` helper & tests (diff) | |
Incidents: link `proxy_url` if attachment fails to download
Suggested by Mark during review. If the download fails, we fallback
on showing an informative message, which will link the attachment
cdn link.
The attachment-handling logic was moved from the `archive` coroutine
into `make_embed`, which now also returns the file, if available.
In the end, this appears to be the smoothest approach.
Co-authored-by: MarkKoz <[email protected]>
Diffstat (limited to 'tests/test_helpers.py')
0 files changed, 0 insertions, 0 deletions