Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix image_src link #2378

Merged
merged 1 commit into from
Nov 28, 2016
Merged

Fix image_src link #2378

merged 1 commit into from
Nov 28, 2016

Conversation

LukasReschke
Copy link
Member

The link in the image_src link (used for previews on Social Media such as Facebook) was still using the old route. This changes it to use the new route.

Signed-off-by: Lukas Reschke lukas@statuscode.ch

Fixes #2364

cc @MorrisJobke @rullzer

@LukasReschke LukasReschke added the 3. to review Waiting for reviews label Nov 28, 2016
@LukasReschke LukasReschke added this to the Nextcloud 11.0 milestone Nov 28, 2016
@mention-bot
Copy link

@LukasReschke, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rullzer, @schiessle and @blizzz to be potential reviewers.

@@ -370,7 +370,7 @@ public function showShare($token, $path = '') {
$shareTmpl['previewMaxY'] = $this->config->getSystemValue('preview_max_y', 1024);
$shareTmpl['disclaimer'] = $this->config->getAppValue('core', 'shareapi_public_link_disclaimertext', null);
if ($shareTmpl['previewSupported']) {
$shareTmpl['previewImage'] = $this->urlGenerator->linkToRouteAbsolute( 'core_ajax_public_preview',
$shareTmpl['previewImage'] = $this->urlGenerator->linkToRouteAbsolute( 'core.Preview.getPreview',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not @PublicPage ?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stupid hobbit… Yeah… Will fix 🙈

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. THX 👍

The link in the image_src link (used for previews on Social Media such as Facebook) was still using the old route. This changes it to use the new route.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@nickvergessen
Copy link
Member

👍

@MorrisJobke
Copy link
Member

Tested and works 👍

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 28, 2016
@MorrisJobke MorrisJobke merged commit 587f28a into master Nov 28, 2016
@MorrisJobke MorrisJobke deleted the fix-preview-image_src branch November 28, 2016 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants