aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Comments/Comment.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(comments): Document supported types and provide psalm typingJoas Schilling2024-10-171-19/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(comments): Support mentioning emailsJoas Schilling2024-10-171-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(psalm): Fix @throws annotationsfix/psalm/throws-annotationsprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Comment): Initialize childrenCount as integerfix/comment/children-count-integerprovokateurin2024-09-151-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-22/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(comments): Allow mentions of federated users, groups and teams in the ↵Joas Schilling2024-02-271-1/+11
| | | | | | future Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(comments): Add a meta data column for commentsJoas Schilling2023-12-141-0/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Throw if creation date is read before inserting into databaseCôme Chilliet2023-06-201-1/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Cleanup comments codeCarl Schwan2023-06-201-83/+50
| | | | | | | - Fix various psalm issues - Add as much typing as possible while preserving stable API Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-2/+2
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* composer run cs:fixCôme Chilliet2023-01-201-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #32865 from nextcloud/bugfix/remove-unecessary-rowblizzz2022-07-081-6/+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-5/+1
| | | | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* | Add comments expire dateVitor Mattos2022-06-151-0/+16
|/ | | | | | https://github.com/nextcloud/spreed/pull/7327 Signed-off-by: Vitor Mattos <vitor@php.rio>
* Add comments reactionsVitor Mattos2022-01-211-0/+16
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Prepare for group mentionsJoas Schilling2021-10-081-9/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-16/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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-101-16/+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>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to set and get the reference idJoas Schilling2020-03-311-0/+31
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* Fix user with id 0 to be able to commentJoas Schilling2019-09-251-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow guest mentions of talk to be parsedJoas Schilling2019-07-101-2/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow apps to store longer messages in the comments APIJoas Schilling2019-06-261-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Match mentions when the username is wrapped in quotesJoas Schilling2018-11-071-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* New regex to match mentionsMario Danic2018-06-081-1/+1
| | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* Remove unsupported modifierMario Danic2018-06-081-1/+1
| | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* Fix mentions regexMario Danic2018-06-081-1/+1
| | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* comments should compile mentions also if done by authorArthur Schiwon2018-01-171-4/+0
| | | | | | | | it is used by clients for formatting reasons, there is no reason not format the author if her handle is included in the comment body. It is unrelated to sending out notifications. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-151-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move mention extraction to (I)Comment and report mentions via DAVArthur Schiwon2016-10-191-0/+37
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix phpdoc in CommentsRoeland Jago Douma2016-08-161-3/+3
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Update license headersLukas Reschke2016-05-261-1/+2
|
* Move \OC\Comments to PSR-4Roeland Jago Douma2016-04-151-0/+382