Maxence Lange
71bdda42e4
initialize variables
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
6 months ago
Hamid Dehnavi
82a503a50a
Make adjustments based on the review
Co-authored-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
11 months ago
Hamid Dehnavi
32ee6f7d04
Add adjustments based on the review
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
1 year ago
Hamid Dehnavi
0ac1480be2
refactor lib/private/Notification
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
1 year ago
Côme Chilliet
f676076482
Throw on missing type of rich subject parameter
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 year ago
Côme Chilliet
8a04bf5584
Apply the same changes to richToParsed in Notification
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 year ago
Côme Chilliet
323963e540
Compute parsed from rich subject and message in Notification
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 year ago
Joas Schilling
6ea4ef9521
Revert "Appropriate length check in Notification.php"
1 year ago
natoponen
bd7a1e4dcb
Appropriate length check in Notification.php
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>
1 year ago
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 years ago
Morris Jobke
24d436cb60
Remove unneeded casts that were found by Psalm
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>
3 years ago
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Joas Schilling
9b288cda6d
Make all interfaces strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
John Molakvoæ (skjnldsv)
e9351ef779
Add strict type on Notifications tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
5 years ago
John Molakvoæ (skjnldsv)
49d5030a53
Fix userid casting in notifications
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
5 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
6 years ago
Roeland Jago Douma
f07d75a4dd
@since 9.2.0 to @since 11.0.0
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago
Joas Schilling
54c0501ffa
Type hints already make sure it is an array
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
2c0b5dee19
Allow rich object strings in messages as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
b35d2fd8f2
Allow rich object subjects for Notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
c77933ca22
Add an icon to the notification API
Signed-off-by: Joas Schilling <coding@schilljs.com>
7 years ago
Joas Schilling
3ed05f8769
Make sure the primary action is always the first one
8 years ago
Joas Schilling
ba87db3fcc
Fix others
8 years ago
Roeland Jago Douma
3301bfd195
Move \OC\Notification to PSR-4
8 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
8 years ago
Joas Schilling
ee02165005
Move the notification API to public namespace
8 years ago
Morris Jobke
75ee5a9e9a
Fix PHPDoc - @changed is no official tag -> use @since
8 years ago
Thomas Müller
682821c71e
Happy new year!
8 years ago
Joas Schilling
018bd3ee24
Make sure that object id can be a string
8 years ago
Joas Schilling
a370c29068
Use a DateTime object instead of a timestamp
8 years ago
Joas Schilling
40d5d55124
Remove the icon for now
8 years ago
Joas Schilling
1666af89c2
Add "is primary action" to actions
8 years ago
Joas Schilling
38001d824b
Move interfaces to private until they are no longer experimental
8 years ago
Joas Schilling
c6469be8bd
Add tests for notification
8 years ago
Joas Schilling
0d154595f8
Fix the subject of notifications
8 years ago
Joas Schilling
57c273b2da
Fix closures and adding parsed Actions
8 years ago
Joas Schilling
d04021b1ac
Fix the request type and the validity
8 years ago
Joas Schilling
4e347170ac
Notification API
8 years ago