aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Notification/Notification.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-241-21/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(notifications): Add a dedicated exception when invalid values are setJoas Schilling2024-04-121-124/+64
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* initialize variablesMaxence Lange2024-01-041-58/+20
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Make adjustments based on the reviewHamid Dehnavi2024-01-021-21/+0
| | | | | Co-authored-by: Louis Chemineau <louis@chmn.me> Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Add adjustments based on the reviewHamid Dehnavi2024-01-021-1/+0
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* refactor lib/private/NotificationHamid Dehnavi2024-01-021-25/+24
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Throw on missing type of rich subject parameterCôme Chilliet2022-12-081-5/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Apply the same changes to richToParsed in NotificationCôme Chilliet2022-11-291-3/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Compute parsed from rich subject and message in NotificationCôme Chilliet2022-11-291-1/+24
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "Appropriate length check in Notification.php"Joas Schilling2022-11-141-2/+2
|
* Appropriate length check in Notification.phpnatoponen2022-11-081-2/+2
| | | | | There is an issue(bug) when using UTF-8 symbols in any method, which checks the length of string as `isset($id[64])`. You can set only 32 UTF-8 symbols because they are 2 byte, and this "array" check seems inapropriate in this case, as it throws unexpected exceptions. Signed-off-by: natoponen <57988162+natoponen@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.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>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make all interfaces strictJoas Schilling2019-07-151-60/+52
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add strict type on Notifications testsJohn Molakvoæ (skjnldsv)2019-06-131-20/+20
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix userid casting in notificationsJohn Molakvoæ (skjnldsv)2019-06-111-2/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* 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-8/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Type hints already make sure it is an arrayJoas Schilling2016-10-311-16/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow rich object strings in messages as wellJoas Schilling2016-10-311-0/+53
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow rich object subjects for NotificationsJoas Schilling2016-10-201-1/+63
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add an icon to the notification APIJoas Schilling2016-10-071-5/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure the primary action is always the first oneJoas Schilling2016-08-151-1/+5
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Move \OC\Notification to PSR-4Roeland Jago Douma2016-04-181-0/+453