aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Notification
Commit message (Collapse)AuthorAgeFilesLines
* feat(prioritynotifications): Allow some apps to mark notifications as priorityfeat/noid/priority-notificationsJoas Schilling2024-09-231-0/+32
| | | | | | | | | They will be still send as push during DND. Apps are currently limited to: - twofactor_nextcloud_notification to help with login - spreed which will only set it for pushes in manually picked conversations Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Fix Event and Notification creation with the new required parameterCôme Chilliet2024-09-171-1/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: Add OCP interface to format richtext into stringCôme Chilliet2024-09-171-26/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-243-61/+9
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(notifications): Add a warning when using relative linksJoas Schilling2024-04-121-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(notifications): Throw AlreadyProcessedException also from the manager ↵Joas Schilling2024-04-121-1/+1
| | | | | | when it's done Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(notifications): Add a dedicated exception when a notification was not ↵Joas Schilling2024-04-121-2/+4
| | | | | | parsed completely Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(notifications): Add a dedicated exception when the notification is ↵Joas Schilling2024-04-121-8/+17
| | | | | | unknown to the notifier Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(notifications): Add a dedicated exception when not all fields are set ↵Joas Schilling2024-04-121-4/+7
| | | | | | while saving a notification Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(notifications): Add a dedicated exception when invalid values are setJoas Schilling2024-04-122-175/+85
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(notifications): Help finding missing notifications by logging itJoas Schilling2024-02-201-0/+1
| | | | 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-022-27/+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-023-60/+46
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* 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>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.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>
* Increase the fair-use push limit to 1.000 usersJoas Schilling2022-11-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.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>
* Fix wording of undeliverable push notificationsJoas Schilling2022-08-311-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove ITimeFactoryLouis2022-08-171-5/+0
| | | Signed-off-by: Louis <6653109+artonge@users.noreply.github.com>
* Remove time check in isFairUseOfFreePushServiceLouis2022-08-161-4/+1
| | | | | What the TODO say, the dev does. Signed-off-by: Louis <6653109+artonge@users.noreply.github.com>
* Fix a few psalm issues and moved back to psalm/phar 4.18Carl Schwan2022-01-121-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Improve wordingJoas Schilling2021-10-271-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fair use of push notificationsJoas Schilling2021-10-231-18/+62
| | | | | | | | | We want to keep offering our push notification service for free, but large users overload our infrastructure. For this reason we have to rate-limit the use of push notifications. If you need this feature, consider setting up your own push server or using Nextcloud Enterprise. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-043-3/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow registering NotifierServices trough IBootstrapRoeland Jago Douma2021-04-161-1/+36
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Allow notification apps to defer and flush the sendingJoas Schilling2020-07-031-0/+44
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-3/+0
| | | | | | For PSR2 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>
* Add interface for notification handler for dimissed eventsRoeland Jago Douma2019-12-101-0/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-053-4/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update since to the correct versionJoas Schilling2019-07-161-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Keep the old method as a fallback and adjust the testsJoas Schilling2019-07-161-3/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix detection of NotifiersJoas Schilling2019-07-151-11/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change how Notifiers and Apps are registeredJoas Schilling2019-07-151-58/+81
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make all interfaces strictJoas Schilling2019-07-153-92/+79
| | | | 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>
* Add return types and fully qualified function callsJoas Schilling2018-07-131-8/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow notifiers to know whether we are preparing push notificationsJoas Schilling2018-07-131-0/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-062-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* More phpstorm inspection fixesRoeland Jago Douma2017-07-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* @since 9.2.0 to @since 11.0.0Roeland Jago Douma2016-11-151-8/+8
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>