Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<description><![CDATA[
The Notes app is a distraction free notes taking app. It supports formatting using [Markdown](https://en.wikipedia.org/wiki/Markdown) syntax. Notes are saved as files in your Nextcloud, so you can view and edit them with every Nextcloud client. Furthermore, a separate [RESTful API](https://github.com/nextcloud/notes/wiki/API-0.2) allows for an easy integration into third-party apps (currently, there are notes apps for [Android](https://github.com/stefan-niedermann/nextcloud-notes) and [iOS](https://github.com/owncloud/notes-iOS-App) which allow convenient access to your Nextcloud notes). Further features include marking notes as favorites and future versions will provide categories for better organization.
]]></description>
<version>2.2.0</version>
<version>2.2.1</version>
<licence>agpl</licence>
<author>Bernhard Posselt, Jan-Christoph Borchardt, Hendrik Leppelsack</author>
<namespace>Notes</namespace>
Expand Down
6 changes: 6 additions & 0 deletions service/metaservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ private function getIndexedArray(array $data, $property) {
return $result;
}

private function create($userId, $note) {
$meta = Meta::fromNote($note, $userId);
$this->metaMapper->insert($meta);
return $meta;
}

private function updateIfNeeded(&$meta, $note) {
if($note->getEtag()!==$meta->getEtag()) {
$meta->setEtag($note->getEtag());
Expand Down