Commit 17a425e
committed
fix(NotificationGenerator): catch InvalidArgumentException from notification setters in prepare()
INotification setters like setRichSubject() and setParsedSubject() throw
\InvalidArgumentException for empty/invalid values, which previously escaped
prepare() — triggering the NC39 deprecation. Catch and discard the notification
as already-processed since it cannot be rendered.
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Anna Larch <anna@nextcloud.com>1 parent 4e3129f commit 17a425e
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
| |||
0 commit comments