diff --git a/appinfo/info.xml b/appinfo/info.xml
index a01922f70..518e33ae5 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -7,7 +7,7 @@
- 2.2.0
+ 2.2.1
agpl
Bernhard Posselt, Jan-Christoph Borchardt, Hendrik Leppelsack
Notes
diff --git a/service/metaservice.php b/service/metaservice.php
index 1b5f47e11..a3a403aa6 100644
--- a/service/metaservice.php
+++ b/service/metaservice.php
@@ -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());