summaryrefslogtreecommitdiffstats
path: root/lib/private/Comments/Manager.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix JSON error when comment has no reactionsJoas Schilling2022-05-091-11/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #31703 from nextcloud/techdebt/noid/emojihelper-interfaceJoas Schilling2022-04-291-4/+5
|\ | | | | Emojihelper interface
| * Increase check if support reactionsVitor Mattos2022-04-281-1/+1
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
| * Extract the EmojiService from user status and add an OCP interfaceJoas Schilling2022-04-281-3/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Make the order of reactions reliableJoas Schilling2022-04-281-0/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow reactions also with other combined emojisJoas Schilling2022-03-241-2/+8
| | | | | | | | Honerful copying the EmojiService from UserStatus for now I think this should be put into a decent place and then reused, but I couldn't find somethin short term before beta1 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Simplify comment search in special casesJoas Schilling2022-03-181-3/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update ICommentsManager with reaction methodsVitor Mattos2022-02-031-34/+37
| | | | | | | | | | | | | Fix psalm errors Reorder methods and remove return null Use best pattern on docblock Goals: update https://github.com/ChristophWurst/nextcloud_composer/ with reaction methods. The script https://github.com/ChristophWurst/nextcloud_composer/blob/master/build.sh only get lib/public classes Signed-off-by: Vitor Mattos <vitor@php.rio>
* Merge pull request #30794 from ↵Joas Schilling2022-01-281-14/+41
|\ | | | | | | | | nextcloud/techdebt/noid/allow-to-get-comments-with-verb Allow to get comments with a given set of verbs
| * Allow to get comments with a given set of verbsJoas Schilling2022-01-211-14/+41
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix check after change from string to mb_stringVitor Mattos2022-01-211-2/+2
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Fix CSJoas Schilling2022-01-211-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Throw if trying to save reaction without supportJoas Schilling2022-01-211-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Only check mb_strlen()Joas Schilling2022-01-211-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove order from groupConcat as it is not working everywhereJoas Schilling2022-01-211-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Limit the summary and sort it afterwardsJoas Schilling2022-01-211-6/+15
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix groupConcat and ordering on OracleVitor Mattos2022-01-211-4/+5
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Order the reaction summary, improvements on validationsVitor Mattos2022-01-211-13/+38
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Disable reactions if database don't support utf8mb4Vitor Mattos2022-01-211-1/+20
| | | | | | | | | | | | Fix column size Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Rename vars and move logic to methodVitor Mattos2022-01-211-7/+8
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Prevent violate constraintVitor Mattos2022-01-211-9/+28
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Rename varsVitor Mattos2022-01-211-14/+14
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Add comments reactionsVitor Mattos2022-01-211-0/+183
|/ | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Allow to count comments with multiple verbsJoas Schilling2021-11-261-4/+28
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix SQL type errorMátyás Jani2021-08-171-1/+1
| | | | | | | | Fixing the following SQL error encountered with PostgreSQL: SQLSTATE[42883]: Undefined function: 7 ERROR: No operator matches the given name and argument types. You might need to add explicit type casts. This prevented the Nextcloud apps/files page to show the files and directories. See #27881
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #27053 from ↵Joas Schilling2021-06-021-3/+2
|\ | | | | | | | | nextcloud/bugfix/noid/dont-throw-when-comments-is-disabled Don't throw when comments is disabled
| * Don't throw when comments is disabledJoas Schilling2021-05-211-3/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix populating the array and closing the cursorsJoas Schilling2021-06-011-3/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix Oracle query limit compliance in CommentsSimounet2021-05-281-5/+10
|/ | | | Signed-off-by: Simounet <contact@simounet.net>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a function to get the unread count for multiple objects in one goJoas Schilling2020-11-041-0/+40
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix return typeJoas Schilling2020-10-211-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Less magicJoas Schilling2020-10-211-4/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Get the last comment date for a list of actors (to allow sorting mention ↵Joas Schilling2020-10-211-0/+44
| | | | | | suggestions e.g.) Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to search on multiple objects with one queryJoas Schilling2020-10-211-2/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add methods to get the number of comments and last comment since a dateJoas Schilling2020-10-211-0/+55
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Include an option to also include the lastKnownCommentId objectJoas Schilling2020-10-211-3/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add ICommentsManager::load methodJohn Molakvoæ (skjnldsv)2020-10-201-5/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use PSR logger interface in comments managerJoas Schilling2020-10-071-13/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Optionally write the reference id into the databaseJoas Schilling2020-03-311-22/+61
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to set and get the reference idJoas Schilling2020-03-311-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* for the DB ot pick an index specify the object_typeArthur Schiwon2020-02-031-4/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix user with id 0 to be able to commentJoas Schilling2019-09-251-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* PHPStorm code cleanupJoas Schilling2019-07-241-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Get the topmost parent for the parent instead of doing endless recursionJoas Schilling2019-07-241-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>