Skip to content

Allow the creationg of previews of files stored in appdata - #11677

Merged
MorrisJobke merged 1 commit into
masterfrom
feature/appdata_previews
Oct 9, 2018
Merged

Allow the creationg of previews of files stored in appdata#11677
MorrisJobke merged 1 commit into
masterfrom
feature/appdata_previews

Conversation

@rullzer

Copy link
Copy Markdown
Member

To allow us to create previews of files stored in appdata we need to
construct the view differently.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

$view = new View($userFolder->getPath());
$path = $userFolder->getRelativePath($file->getPath());
} else {
$view = new View($file->getParent()->getPath());

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cant you always use this code path?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

yes should work.

To allow us to create previews of files stored in appdata we need to
construct the view differently.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer
rullzerforce-pushed the feature/appdata_previews branch from 34db505 to ade61d8CompareOctober 8, 2018 17:38
@rullzer

Copy link
Copy Markdown
MemberAuthor

Ready for review

Comment threadlib/private/Preview/GeneratorHelper.php

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested and works 👍 Also the code makes sense

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@rullzer@MorrisJobke@icewind1991@juliusknorr