aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
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-292-105/+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-282-104/+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-242-2/+109
| | | | | | | | 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-212-0/+199
|/ | | | 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>
* Prepare for group mentionsJoas Schilling2021-10-081-9/+11
| | | | 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-043-4/+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>
* Fix linterJoas Schilling2021-02-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make Psalm happyJoas Schilling2021-02-061-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve mention matchesJoas Schilling2021-02-061-0/+1
| | | | | | The previous regex didn't correctly match users with . ' or - Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+3
| | | | 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 PHP CSJoas Schilling2020-10-221-2/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix manager creation and testingJoas Schilling2020-10-221-6/+1
| | | | 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-202-6/+24
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use PSR logger interface in comments managerJoas Schilling2020-10-072-14/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-16/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-17/+15
| | | | | | | | | | | | | | | 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>