Skip to content

Commit 155487a

Browse files
dannyvfilmsclaude
andcommitted
Fix music activity images not reverting when image caching is disabled
Apply the image_url filter to artist/album/track rows in music_activity_overview.html — this template was missed when the filter was rolled out to every other image-rendering template in 5668bba. Fixes #981 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent a55db48 commit 155487a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/templates/app/components/statistics/music_activity_overview.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 class="text-sm font-medium uppercase tracking-wide text-[var(--color-text-se
3636
<a href="{{ artist|music_artist_url }}" class="flex items-center space-x-3 hover:bg-[var(--color-surface)] rounded-md p-1 -m-1 transition-colors cursor-pointer">
3737
<span class="text-[var(--color-text-muted)] text-sm font-medium w-4">{{ forloop.counter }}</span>
3838
{% if artist.image and artist.image != IMG_NONE %}
39-
<img src="{{ IMG_NONE }}" data-src="{{ artist.image }}" alt="{{ artist.name }}" class="lazyload w-10 h-10 rounded-full object-cover bg-[var(--color-surface)]">
39+
<img src="{{ IMG_NONE }}" data-src="{{ artist.image|image_url }}" alt="{{ artist.name }}" class="lazyload w-10 h-10 rounded-full object-cover bg-[var(--color-surface)]">
4040
{% else %}
4141
<div class="w-10 h-10 rounded-full bg-[var(--color-surface)] flex items-center justify-center">
4242
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-[var(--color-text-muted)]" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -67,7 +67,7 @@ <h3 class="text-sm font-medium uppercase tracking-wide text-[var(--color-text-se
6767
<a href="{{ album|music_album_url }}" class="flex items-center space-x-3 hover:bg-[var(--color-surface)] rounded-md p-1 -m-1 transition-colors cursor-pointer">
6868
<span class="text-[var(--color-text-muted)] text-sm font-medium w-4">{{ forloop.counter }}</span>
6969
{% if album.image and album.image != IMG_NONE %}
70-
<img src="{{ IMG_NONE }}" data-src="{{ album.image }}" alt="{{ album.title }}" class="lazyload w-10 h-10 rounded object-cover bg-[var(--color-surface)]">
70+
<img src="{{ IMG_NONE }}" data-src="{{ album.image|image_url }}" alt="{{ album.title }}" class="lazyload w-10 h-10 rounded object-cover bg-[var(--color-surface)]">
7171
{% else %}
7272
<div class="w-10 h-10 rounded bg-[var(--color-surface)] flex items-center justify-center">
7373
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-[var(--color-text-muted)]" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -102,7 +102,7 @@ <h3 class="text-sm font-medium uppercase tracking-wide text-[var(--color-text-se
102102
{% endif %}
103103
<span class="text-[var(--color-text-muted)] text-sm font-medium w-4">{{ forloop.counter }}</span>
104104
{% if track.album_image and track.album_image != IMG_NONE %}
105-
<img src="{{ IMG_NONE }}" data-src="{{ track.album_image }}" alt="{{ track.album }}" class="lazyload w-10 h-10 rounded object-cover bg-[var(--color-surface)]">
105+
<img src="{{ IMG_NONE }}" data-src="{{ track.album_image|image_url }}" alt="{{ track.album }}" class="lazyload w-10 h-10 rounded object-cover bg-[var(--color-surface)]">
106106
{% else %}
107107
<div class="w-10 h-10 rounded bg-[var(--color-surface)] flex items-center justify-center">
108108
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-[var(--color-text-muted)]" fill="none" viewBox="0 0 24 24" stroke="currentColor">

0 commit comments

Comments
 (0)