Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
doganoo committed Nov 4, 2018
1 parent e03930b commit 7ba0b50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Design and Implementation of a Recommendation System Using Hybrid
Collaborative Filtering Techniques for the Nextcloud Platform
</description>
<version>1.0.4</version>
<version>1.0.5</version>

<licence>agpl</licence>
<author>Dogan Ucar</author>
Expand Down
5 changes: 3 additions & 2 deletions lib/Controller/RecommendationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ public function index() {
Logger::warn($e->getMessage());
}
$mime = $node->getMimeType();
$internalPath = $node->getInternalPath();
$internalPath = \str_replace("files/", "", $internalPath); //TODO until you know a better solution_!

$extension = pathinfo($name, PATHINFO_EXTENSION);
$fileNameAndExtension = $name;
$entity->fileName = pathinfo($name, PATHINFO_FILENAME);
$entity->mTime = $mTime;
$entity->fileSize = $size;
$entity->extension = $extension;
$entity->fileNameAndExtension = $fileNameAndExtension;
$entity->fileNameAndExtension = $internalPath;
$entity->mimeType = $mime;
}
$jsonResponse = new JSONResponse($entities);
Expand Down

0 comments on commit 7ba0b50

Please sign in to comment.