aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Comments/IComment.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-14 00:19:31 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-10-19 00:33:55 +0200
commitfea3e20a805de12546312c68557ddbd8498b9414 (patch)
tree4cc3f481c51f3feab18c29164a57acbe70d86f5f /lib/public/Comments/IComment.php
parente115bf96e742909b78150d04305b67196b94115c (diff)
downloadnextcloud-server-fea3e20a805de12546312c68557ddbd8498b9414.tar.gz
nextcloud-server-fea3e20a805de12546312c68557ddbd8498b9414.zip
move mention extraction to (I)Comment and report mentions via DAV
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/Comments/IComment.php')
-rw-r--r--lib/public/Comments/IComment.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php
index bb997a07223..8210d4c8c7e 100644
--- a/lib/public/Comments/IComment.php
+++ b/lib/public/Comments/IComment.php
@@ -133,6 +133,28 @@ interface IComment {
public function setMessage($message);
/**
+ * returns an array containing mentions that are included in the comment
+ *
+ * @return array each mention provides a 'type' and an 'id', see example below
+ * @since 9.2.0
+ *
+ * The return array looks like:
+ * [
+ * [
+ * 'type' => 'user',
+ * 'id' => 'citizen4'
+ * ],
+ * [
+ * 'type' => 'group',
+ * 'id' => 'media'
+ * ],
+ * …
+ * ]
+ *
+ */
+ public function getMentions();
+
+ /**
* returns the verb of the comment
*
* @return string