From 6abd0509f911c0f3c0b15fbb6ea33c6462e2a89b Mon Sep 17 00:00:00 2001 From: cmrd Senya Date: Mon, 15 May 2017 10:25:51 +0300 Subject: [PATCH] Use guid instead of id at permalink and in SPV This changes links from /posts/:id to /posts/:guid where the links are not clicked very often. ID search is faster than guid search so we can't change it everywhere, but these links are not very useful for clicking, but can be used for easier guid look up. closes #7453 --- Changelog.md | 1 + .../single-post-viewer/single-post-content_tpl.jst.hbs | 6 +++--- app/assets/templates/stream-element_tpl.jst.hbs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Changelog.md b/Changelog.md index c9b28d8f5..8327b136e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,6 +2,7 @@ ## Refactor * Remove rails\_admin [#7440](https://github.com/diaspora/diaspora/pull/7440) +* Use guid instead of id at permalink and in SPV [#7453](https://github.com/diaspora/diaspora/pull/7453) ## Bug fixes * Make photo upload button hover text translatable [#7429](https://github.com/diaspora/diaspora/pull/7429) diff --git a/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs b/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs index 75d051777..dd96957c5 100644 --- a/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs +++ b/app/assets/templates/single-post-viewer/single-post-content_tpl.jst.hbs @@ -39,11 +39,11 @@ {{/if}} {{#if root}} - + {{else}} - + {{/if}} @@ -91,7 +91,7 @@
- + diff --git a/app/assets/templates/stream-element_tpl.jst.hbs b/app/assets/templates/stream-element_tpl.jst.hbs index 6347b73fc..bfba508f7 100644 --- a/app/assets/templates/stream-element_tpl.jst.hbs +++ b/app/assets/templates/stream-element_tpl.jst.hbs @@ -24,7 +24,7 @@