From a290c432d8277619b8e5bb189e950f062f127961 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Thu, 12 Jan 2017 20:37:51 +0100 Subject: [PATCH] Fix link to post on mobile photo page closes #7274 --- Changelog.md | 1 + app/views/photos/show.mobile.haml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index b6462294e..deecb2489 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ * Fix jasmine tests in firefox [#7246](https://github.com/diaspora/diaspora/pull/7246) * Prevent scroll to top when clicking 'mark all as read' in the notification dropdown [#7253](https://github.com/diaspora/diaspora/pull/7253) * Update existing notifications in dropdown on fetch [#7270](https://github.com/diaspora/diaspora/pull/7270) +* Fix link to post on mobile photo page [#7274](https://github.com/diaspora/diaspora/pull/7274) ## Features * Add links to the aspects and followed tags pages on mobile [#7265](https://github.com/diaspora/diaspora/pull/7265) diff --git a/app/views/photos/show.mobile.haml b/app/views/photos/show.mobile.haml index 69d2a96f9..7d3120709 100644 --- a/app/views/photos/show.mobile.haml +++ b/app/views/photos/show.mobile.haml @@ -17,7 +17,10 @@ = person_link(photo.author) .info %span - = link_to(post_path(photo)) do + - if photo.status_message + = link_to(post_path(photo.status_message)) do + = timeago(photo.created_at) + - else = timeago(photo.created_at) -if additional_photos && additional_photos.length > 1