aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Comments/ICommentsManager.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-241-25/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: depricate getNumberOfUnreadCommentsForFolder and redo it's ↵Robin Appelman2024-03-071-0/+1
| | | | | | implementation based on getNumberOfUnreadCommentsForObjects Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-5/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Improve typing in ICommentsManagerCarl Schwan2023-06-201-4/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup comments codeCarl Schwan2023-06-201-5/+7
| | | | | | | - Fix various psalm issues - Add as much typing as possible while preserving stable API Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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-151-0/+11
| | | | | | 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>
* 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>
* 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-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+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/+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>
* Remove @package annotations from public namespaceJulius Härtl2020-08-261-1/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+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>
* 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-061-0/+3
| | | | 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-151-3/+3
| | | | 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>
* Notificacations for simple @-mentioning in commentsArthur Schiwon2016-10-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move \OCP\Comments to PSR-4 (#24565)Roeland Douma2016-05-121-0/+239