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

Use the object ID to generate the preview #371

Merged
merged 5 commits into from
Aug 29, 2015
Merged

Conversation

nickvergessen
Copy link
Contributor

  • Tests needs adjustments

Files in trashbin still don't work: owncloud/core#18509
Use the ID in the parameters as well?

Fix #369
Fix #340
Fix #381

@PVince81

@nickvergessen nickvergessen added this to the 8.2-current milestone Aug 24, 2015
@nickvergessen
Copy link
Contributor Author

Fix #369

@PVince81

* @return array
*/
protected function getPreview(array $activity, $file) {
protected function getPreview(array $activity, $fileId, $filePath) {
$this->view->chroot('/' . $activity['affecteduser'] . '/files');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needs trailing slash and special code for trashbin

@nickvergessen
Copy link
Contributor Author

@MorrisJobke fixes the blurry icon, if you want to test it ;)

@MorrisJobke
Copy link
Contributor

Works 👍

nickvergessen added a commit that referenced this pull request Aug 29, 2015
Use the object ID to generate the preview
@nickvergessen nickvergessen merged commit f79d18a into master Aug 29, 2015
@nickvergessen nickvergessen deleted the previews-by-file-id branch August 29, 2015 16:06
Sign up for free to 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.

2 participants