summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Notification
Commit message (Collapse)AuthorAgeFilesLines
* feat(notifications): Migrate server INotifiers to new exceptionsJoas Schilling2024-06-251-4/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-062-42/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(sharing): Align wording for declining a shareJoas Schilling2024-03-191-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.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>
* Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanupJoas Schilling2023-08-041-6/+3
|\ | | | | fix!: Final round of moving to IEventDispatcher
| * feat!: Migrate Sharing events to typed eventsJoas Schilling2023-07-281-6/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(notifications): Remove share notification when the node is deletedJoas Schilling2023-08-031-0/+8
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Get rid of all useless calls to setParsedSubject now that setRichSubject is ↵Côme Chilliet2022-11-291-9/+1
| | | | | | able to do it Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Ignore invalid share typesJoas Schilling2022-09-261-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Discard share notification for non-existing groupsVincent Petry2021-12-151-1/+1
| | | | | | | | | | Group shares might exist even after a group got deleted. This fix catches the situation and discards the notification for the obsolete group. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | 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-102-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the target for file notificationsRoeland Jago Douma2020-01-241-2/+2
| | | | | | | The node is not yet accessible if you did not accept the share yet. So trying to get it results in an acception. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use the user from the notificationRoeland Jago Douma2019-12-181-7/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fetch the share for the recipientRoeland Jago Douma2019-12-091-2/+6
| | | | | | | | | | Fixes #18020 For group shares your invite might be handled but that doesn't mean the whole share is handled. So we just need to make sure to fetch the share for the current user. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-052-3/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+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>
* Correctly use the displayname of the sharer in the notificationJoas Schilling2019-11-121-6/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use constants for the magic stringsJoas Schilling2019-11-122-8/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add notifications for users that are added to the groupJoas Schilling2019-11-121-3/+45
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to accept group sharesJoas Schilling2019-11-122-21/+78
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Notifications for group sharesJoas Schilling2019-11-121-1/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add the notifier and the API endpoint for user sharesJoas Schilling2019-11-122-5/+172
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add notification for shares about to expireRoeland Jago Douma2019-11-011-0/+98
Introduces a new command that will create notifications for users if they have shares that will expire the next day. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>