Commit 60f7462
committed
fix: preserve query string and fragment in federation picture URLs
parse_picture rendered the validated picture URL via SafeUrl's Display,
which is meant for safe logging and drops query/fragment. CDN avatars
using sizing params or a signed query resolved to the wrong image.
Use without_auth() + as_str() instead, which strips credentials while
keeping the full URL.
Fixes #5531 parent d3c14ef commit 60f7462
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1962 | 1962 | | |
1963 | 1963 | | |
1964 | 1964 | | |
1965 | | - | |
| 1965 | + | |
1966 | 1966 | | |
1967 | 1967 | | |
1968 | 1968 | | |
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
2653 | | - | |
2654 | | - | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
2658 | | - | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
2659 | 2657 | | |
2660 | 2658 | | |
2661 | 2659 | | |
2662 | 2660 | | |
2663 | 2661 | | |
2664 | | - | |
| 2662 | + | |
2665 | 2663 | | |
2666 | 2664 | | |
2667 | 2665 | | |
| |||
0 commit comments