diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-01-21 15:08:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 15:08:12 +0100 |
commit | fccb98c8b654e4cdde33e0128a29de47d3f21f4d (patch) | |
tree | 0c3e8b46ccf5d376a565ab3debab162eff1ade33 /lib/public | |
parent | 17025d6f814f1b7db6077df21d1740282766cf92 (diff) | |
parent | 1a1bdd9bc4e90153ef87381b908e0289ca74bc53 (diff) | |
download | nextcloud-server-fccb98c8b654e4cdde33e0128a29de47d3f21f4d.tar.gz nextcloud-server-fccb98c8b654e4cdde33e0128a29de47d3f21f4d.zip |
Merge pull request #30379 from nextcloud/feature/add-comments-reactions
Add comments reactions
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Comments/IComment.php | 21 | ||||
-rw-r--r-- | lib/public/DB/QueryBuilder/IQueryBuilder.php | 4 |
2 files changed, 23 insertions, 2 deletions
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php index b9747aefb5b..8465eaf49f4 100644 --- a/lib/public/Comments/IComment.php +++ b/lib/public/Comments/IComment.php @@ -278,4 +278,25 @@ interface IComment { * @since 19.0.0 */ public function setReferenceId(?string $referenceId): IComment; + + /** + * Returns the reactions array if exists + * + * The keys is the emoji of reaction and the value is the total. + * + * @return array<string, integer> e.g. ["👍":1] + * @since 24.0.0 + */ + public function getReactions(): array; + + /** + * Set summarized array of reactions by reaction type + * + * The keys is the emoji of reaction and the value is the total. + * + * @param array<string, integer>|null $reactions e.g. ["👍":1] + * @return IComment + * @since 24.0.0 + */ + public function setReactions(?array $reactions): IComment; } diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php index 7829696970c..669003246d9 100644 --- a/lib/public/DB/QueryBuilder/IQueryBuilder.php +++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php @@ -470,7 +470,7 @@ interface IQueryBuilder { * ->from('users', 'u') * </code> * - * @param string $from The table. + * @param string|IQueryFunction $from The table. * @param string|null $alias The alias of the table. * * @return $this This QueryBuilder instance. @@ -994,7 +994,7 @@ interface IQueryBuilder { /** * Returns the table name quoted and with database prefix as needed by the implementation * - * @param string $table + * @param string|IQueryFunction $table * @return string * @since 9.0.0 */ |