diff options
author | Joas Schilling <coding@schilljs.com> | 2023-12-13 13:29:12 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-12-14 14:32:00 +0100 |
commit | 6056928dc6185cb22a55dbbc1d37f5abaf59ead2 (patch) | |
tree | c0b05f4c45d6212c985ee4a176c112ea58b1d319 /lib/public/Comments | |
parent | bac05cae5b53cc208b7edaa6b2b2a5de86f25035 (diff) | |
download | nextcloud-server-6056928dc6185cb22a55dbbc1d37f5abaf59ead2.tar.gz nextcloud-server-6056928dc6185cb22a55dbbc1d37f5abaf59ead2.zip |
feat(comments): Add a meta data column for comments
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r-- | lib/public/Comments/IComment.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php index eb696fa5f06..0a0f1b1b251 100644 --- a/lib/public/Comments/IComment.php +++ b/lib/public/Comments/IComment.php @@ -280,6 +280,25 @@ interface IComment { public function setReferenceId(?string $referenceId): IComment; /** + * Returns the metadata of the comment + * + * @return array|null + * @since 29.0.0 + */ + public function getMetaData(): ?array; + + /** + * Sets (overwrites) the metadata of the comment + * Data as a json encoded array + * + * @param array|null $metaData + * @return IComment + * @throws \JsonException When the metadata can not be converted to a json encoded string + * @since 29.0.0 + */ + public function setMetaData(?array $metaData): IComment; + + /** * Returns the reactions array if exists * * The keys is the emoji of reaction and the value is the total. |