Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-05-11Replace executeUpdate with executeStatementJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-22Merge pull request #937 from nextcloud/bugfix/noid/reduce-delete-push-spamJoas Schilling
Only push delete-push to devices that also got the notification
2021-04-20Only push delete-push to devices that also got the notificationJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-19Defer deletion-push when rendering or deleting all notificationsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-15Move to PSR LoggerJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-15IQueryBuilder::execute() is deprecatedJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-15Use Response::setETag()Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-15Get DateTime object from ITimeFactoryJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-15Make everything strictJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-15Fix the admin notification APIJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-18Use a pushtoken table with primary keyJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-15Make Application class strictJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-01-05Fix usage of DBAL typesChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-16Don't log when unknown array is nullJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-11-10Fix loading notifications without a message on oracleJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-30Add a comment for the array checkJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-30Add test for the new codeJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-29Also check responses of 400 errors and so delete unknown devicesJoas Schilling
So before this PR, we tried to act on 400 errors already, but I didn't know that they throw an exception on the `post()`, so instead of performing on the response body, we `continue;` after we logged an info :hushed: This is of course not what was intended. Further more, since the notifications are grouped and the proxy had an error which would immediately bail out with a 400 when there was 1 broken notification, instead of sending the rest, 1 broken notification was enough to not send any notification anymore. And since we never deleted the broken device the instance didn't "heal" itself, but always broke like this. Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-10PHP CS fixJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-10"App tutorial"ize this appJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-09Register via injectFn()Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-08-26No push notifications when in DNDJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-08-26Set the user status as header, so clients can decide to not show notificationsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-07-13Also check for internet on delete pushRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-07-09Don't push without internet connectionJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-07-09Merge pull request #652 from ↵Joas Schilling
nextcloud/techdebt/noid/deferrable-notification-apps Deferrable notification apps
2020-07-08Automatically defer on deletionJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-07-08Implement the notifications app as IDeferrableAppJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-07-08Group pushing the notificationsJoas Schilling
For notify() this doesn't make any difference for now, but for markProcessed() it reduces the number of connections drastically. Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-07-08Use the L10N factory to get the users languageJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-29Merge pull request #671 from ↵Joas Schilling
nextcloud/bugfix/noid/delete-duplicates-of-the-same-pushtokenhash Delete duplicates of the same push token hash
2020-06-26Delete duplicates of the same push token hashJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-25More buffer to the key sizeJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-22Merge pull request #656 from nextcloud/bugfix/noid/ignore-old-push-devicesJoas Schilling
Ignore old push devices
2020-06-19Migrate post_deleteUser hook to eventDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-06-18Move to new bootstrap mechanismRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-06-09Also cache when a token is invalidJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-09Cache the last token activity for 10 minutesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-09Don't push to devices older than 60 daysJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-09Unify token validationJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-09Filter the devices out before looping over themJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-14Allow to test push notificationsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-05Delete push tokens when the device is unkown by the proxyJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-05Unify the sending partJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-05Merge pull request #550 from nextcloud/bugfix/noid/prevent-delete-on-impersonateJoas Schilling
Prevent delete for impersonated users
2020-02-25Fix push notifications for multibyte notificationsJoas Schilling
json_encode is messing with multibyte characters a lot, replacing them with something along "\u1234" instead of the assumed 2-times overhead. The data length in our encryption is a hard limit, but we don't want to make non-utf8 subjects unnecessary short. So this function tries to cut it off first. If that is not enough it always cuts off 5 characters in multibyte-safe fashion until the json_encode-d string is shorter then the given limit. Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-29Support Strict VoIP push notifications for iOS 13 SDKJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-01-22Prevent delete for impersonated usersJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-10Make sure we dont fail with an exceptionJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-12-10Use known INotification instances when possibleJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>