-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add meta information to emails for better customisation #6255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
| $initiator, | ||
| $shareWith) { | ||
| $shareWith, | ||
| \DateTime $expiration) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be allowed to be set to null otherwise shares without an expiration date will fail with:
TypeError: Argument 5 passed to OCA\\ShareByMail\\ShareByMailProvider::sendMailNotification() must be an instance of DateTime, null given, called in apps/sharebymail/lib/ShareByMailProvider.php on line 351 at apps/sharebymail/lib/ShareByMailProvider.php#376
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\DateTime $expiration = null is better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct 👍
Codecov Report
@@ Coverage Diff @@
## master #6255 +/- ##
=============================================
- Coverage 53.33% 30.54% -22.79%
Complexity 22480 22480
=============================================
Files 1403 1403
Lines 86955 86964 +9
Branches 1327 1327
=============================================
- Hits 46377 26566 -19811
- Misses 40578 60398 +19820
|
|
Failing tests |
80edcd8 to
f0c34a3
Compare
Fixed |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Signed-off-by: Joas Schilling coding@schilljs.com