summaryrefslogtreecommitdiffstats
path: root/lib/private/Notification
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Use a php class for the definitions to avoid loading problemsJoas Schilling2016-11-091-6/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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-202-2/+67
| | | | 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>
* Null !== void, those methods are voidJoas Schilling2016-09-051-3/+0
|
* Merge pull request #867 from nextcloud/notification-primary-action-always-firstRoeland Jago Douma2016-08-171-1/+5
|\ | | | | Make sure the primary action is always the first one
| * Make sure the primary action is always the first oneJoas Schilling2016-08-151-1/+5
| |
* | Fix phpdocRoeland Jago Douma2016-08-161-1/+1
|/
* Fix othersJoas Schilling2016-07-213-6/+9
|
* Move \OC\Notification to PSR-4Roeland Jago Douma2016-04-183-0/+866