summaryrefslogtreecommitdiffstats
path: root/lib/public/Comments
Commit message (Collapse)AuthorAgeFilesLines
* composer run cs:fixCôme Chilliet2023-01-204-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #32865 from nextcloud/bugfix/remove-unecessary-rowblizzz2022-07-081-2/+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-131-2/+2
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Allow to expire comments of multiple objects with one callJoas Schilling2022-07-011-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add comments expire dateVitor Mattos2022-06-152-0/+28
|/ | | | | | https://github.com/nextcloud/spreed/pull/7327 Signed-off-by: Vitor Mattos <vitor@php.rio>
* Update ICommentsManager with reaction methodsVitor Mattos2022-02-031-0/+53
| | | | | | | | | | | | | 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-0/+24
|\ | | | | | | | | nextcloud/techdebt/noid/allow-to-get-comments-with-verb Allow to get comments with a given set of verbs
| * Fix typo in deprecatedJoas Schilling2022-01-211-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Allow to get comments with a given set of verbsJoas Schilling2022-01-211-0/+24
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add comments reactionsVitor Mattos2022-01-211-0/+21
|/ | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Allow to count comments with multiple verbsJoas Schilling2021-11-261-0/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-049-11/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Deprecate all remaining event constantsChristoph Wurst2021-02-092-0/+19
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-1/+2
| | | | 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/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix missing sinceJoas Schilling2020-10-221-0/+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>
* Add return descriptionJoas Schilling2020-10-211-1/+1
| | | | 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/+17
| | | | | | suggestions e.g.) Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to search on multiple objects with one queryJoas Schilling2020-10-211-0/+13
| | | | 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/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Include an option to also include the lastKnownCommentId objectJoas Schilling2020-10-211-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add ICommentsManager::load methodJohn Molakvoæ (skjnldsv)2020-10-201-0/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove @package annotations from public namespaceJulius Härtl2020-08-266-6/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-297-0/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-104-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-107-7/+6
| | | | | | | | | | | | | | | 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>
* Allow to set and get the reference idJoas Schilling2020-03-311-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-059-9/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-226-1/+6
| | | | | | | | | | | * 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>
* use OCP\EventDispatcher\Event over Symfony's deprecated EventArthur Schiwon2019-10-172-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow apps to store longer messages in the comments APIJoas Schilling2019-06-261-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to filter the unread count by verbJoas Schilling2018-07-301-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add pagination supportJoas Schilling2018-07-251-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to search by commentsJoas Schilling2018-07-251-0/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix docsJoas Schilling2018-04-191-6/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add proper comment offset supportJoas Schilling2018-04-181-0/+17
| | | | | | | The offset is based on the last known comment instead of limit-offset, so new comments don't mess up requests which get the history of an object- Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-064-0/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace wrong PHPDocsLukas Reschke2017-08-011-2/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Allow getting the unread comment count for an entire folder at onceRobin Appelman2017-03-301-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-153-6/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* resolve displayname via manager and registerable resolversArthur Schiwon2016-10-191-0/+28
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move mention extraction to (I)Comment and report mentions via DAVArthur Schiwon2016-10-191-0/+22
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* emit pre-update event for commentsArthur Schiwon2016-10-121-3/+4
| | | | | | | * notifications can be cleaned up, no polluted DB * updating comments will re-notify users or remove notifications, depending on the message Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Notificacations for simple @-mentioning in commentsArthur Schiwon2016-10-072-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (WIP) notify user when mentioned in comments Fix doc, and create absolute URL for as notification link. PSR-4 compatibility changes also move notification creation to comments app Do not notify yourself unit test for controller and application smaller fixes - translatable app name - remove doubles in mention array - micro perf optimization - display name: special label for deleted users, keep user id for users that could not be fetched from userManager Comment Notification-Listener Unit Test fix email adresses remove notification when triggering comment was deleted add and adjust tests add missing @license tags simplify NotificationsController registration appinfo simplification, php docs make string easier to translate adjust test replace dispatcher-based listeners with a registration method and interface safer to not pass optional data parameter to setSubject for marking as processed. ID and mention suffices Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de> update comment Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix othersJoas Schilling2016-07-218-11/+19
|
* Update license headersLukas Reschke2016-05-266-6/+6
|
* Move EntityEvent to PSR-4Joas Schilling2016-05-231-0/+76
|