From b4fc6cf99ea5dce64ad477aa9cd84e934ed55d57 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 5 Apr 2018 18:18:23 -0700 Subject: [PATCH] fix media in notifications not clickable --- routes/_components/status/Media.html | 2 +- routes/_components/status/MediaAttachments.html | 2 +- routes/_components/status/StatusMediaAttachments.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routes/_components/status/Media.html b/routes/_components/status/Media.html index b21253f..000a31c 100644 --- a/routes/_components/status/Media.html +++ b/routes/_components/status/Media.html @@ -134,7 +134,7 @@ originalWidth: original => original && original.width, originalHeight: original => original && original.height, noNativeWidthHeight: (smallWidth, smallHeight) => typeof smallWidth !== 'number' || typeof smallHeight !== 'number', - delegateKey: (media) => `media-${media.id}` + delegateKey: (media, uuid) => `media-${uuid}-${media.id}` }, methods: { async onClickPlayVideoButton() { diff --git a/routes/_components/status/MediaAttachments.html b/routes/_components/status/MediaAttachments.html index 002d898..98c6116 100644 --- a/routes/_components/status/MediaAttachments.html +++ b/routes/_components/status/MediaAttachments.html @@ -1,7 +1,7 @@
{{#each mediaAttachments as media}} - + {{/each}}