summaryrefslogtreecommitdiffstats
path: root/lib/private/Comments
Commit message (Collapse)AuthorAgeFilesLines
* Update expire_date column of table commentsVitor Mattos2023-04-261-1/+2
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Split the comments ids by chunksVitor Mattos2023-03-011-8/+16
| | | | | | | | | Split the comments ids by chunks to prevent error with Oracle database that can't do a query with more than 1000 parameters. https://github.com/nextcloud/spreed/issues/8287 Signed-off-by: Vitor Mattos <vitor@php.rio>
* composer run cs:fixCôme Chilliet2023-01-203-4/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix forwarding the object id when searching commentsJoas Schilling2022-11-161-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete comments that expired nowVitor Mattos2022-07-251-1/+1
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Merge pull request #32865 from nextcloud/bugfix/remove-unecessary-rowblizzz2022-07-082-7/+2
|\ | | | | Remove unecessary row and make compatible with db schema
| * Set as optional argumentVitor Mattos2022-06-131-1/+1
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
| * Remove unecessary row and make compatible with db schemaVitor Mattos2022-06-132-6/+1
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Allow to expire comments of multiple objects with one callJoas Schilling2022-07-011-5/+9
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add comments expire dateVitor Mattos2022-06-152-0/+37
|/ | | | | | https://github.com/nextcloud/spreed/pull/7327 Signed-off-by: Vitor Mattos <vitor@php.rio>
* Create query parameters on correct objects to make debugging easierJoas Schilling2022-05-231-4/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>