aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/lib
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of all useless calls to setParsedSubject now that setRichSubject is ↵Côme Chilliet2022-11-292-27/+4
| | | | | | able to do it Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #33615 from ↵Joas Schilling2022-08-191-15/+1
|\ | | | | | | | | nextcloud/perf/noid/user-displayname-cache-for-activity-providers Use user name cache in activity providers
| * Use user name cache in activity providersJoas Schilling2022-08-191-15/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use user displayname cache for comment mentionsJoas Schilling2022-08-191-5/+5
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Modernize comments appCarl Schwan2022-03-1610-152/+52
| | | | | | | | * Use php 7.4 typed properties * More typed methods (and replace existing php doc in some cases) * query -> get for Container Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Split common vendor chunkJohn Molakvoæ (skjnldsv)2022-01-081-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Correct spellingValdnet2021-12-151-2/+2
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0418-38/+23
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move over notification to new registrationRoeland Jago Douma2021-04-161-5/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move comments to initial stateRoeland Jago Douma2021-03-222-19/+19
| | | | | | | | | * Do not extend the jssettings * Just use the proper intial state * Use it in the js code as well Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-2/+2
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Improve mention matchesJoas Schilling2021-02-062-10/+8
| | | | | | The previous regex didn't correctly match users with . ' or - Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-1/+1
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add ICommentsManager::load methodJohn Molakvoæ (skjnldsv)2020-10-204-103/+6
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Init vue comments tabJohn Molakvoæ (skjnldsv)2020-10-204-0/+109
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use absolute URLs on search results for the clientsJoas Schilling2020-09-151-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-246-6/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Hand in the route and the parameters of the requestJoas Schilling2020-08-051-1/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Make apps handle the order logicJohn Molakvoæ (skjnldsv)2020-08-051-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Show mime icon, bump bundles, make the SearchResultEntry class ↵John Molakvoæ (skjnldsv)2020-08-043-35/+21
| | | | | | non-abstract, Fix header search icon, various fixes Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix unified searchJohn Molakvoæ (skjnldsv)2020-08-031-9/+22
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Adjust apps' code to use the ContainerInterfaceChristoph Wurst2020-07-212-8/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate comments to unified search APIChristoph Wurst2020-06-245-77/+218
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate Comments to the new bootstrap mechanismChristoph Wurst2020-06-172-36/+76
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a capability when file comments are enabledJoas Schilling2020-05-282-0/+38
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-298-0/+8
| | | | 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-109-29/+22
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-094-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix comments search result to work with multibyte stringsMichał Węgrzynek2019-12-091-5/+5
| | | | | | Currently, the searching in comments breaks up, if comments contain multibyte characters and string manipulation logic in getRelevantMessagePart happens to cut through them rendering the resulting string invalid (not UTF-8 compliant). This patch replaces all string manipulating functions in this code to multibyte aware ones. Signed-off-by: Michał Węgrzynek <michal.wegrzynek@malloc.com.pl>
* Update license headersChristoph Wurst2019-12-0515-20/+31
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+0
| | | | | | | | | | | * 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 comments app init and LoadSidebar eventJohn Molakvoæ (skjnldsv)2019-11-043-7/+64
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move over comments to the new eventRoeland Jago Douma2019-09-232-9/+49
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Keep the old method as a fallback and adjust the testsJoas Schilling2019-07-161-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update shipped implementations of the INotifierJoas Schilling2019-07-152-11/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move comments to webpackRoeland Jago Douma2019-02-261-3/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #13819 from ↵Morris Jobke2019-02-071-1/+0
|\ | | | | | | | | nextcloud/bugfix/noid/unify-html-encoding-handling-with-other-ros-apps Unify the HTML encoding handling with other ROS apps
| * Unify the HTML encoding handling with other ROS appsJoas Schilling2019-01-251-1/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | No need to explicitly load bundle dependenciesRoeland Jago Douma2019-02-041-1/+0
|/ | | | | | oc-webdav-backbone is loaded by default Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>