Closed srijan closed 1 year ago
Thank you for that feedback :) That is actually a fault of a newly added feature, where I added the option to save the email address of the sender of a comment. I didn't had in mind that there might be no address in case of a webmention…
I will change the setEmail function, so the handling of unset/empty addresses is completely in its domain. I'll also extend the tests to cover that case.
It works now. Thanks :)
Hi. I was trying to setup indieConnector + komments, and faced an issue (after working around mauricerenck/indieConnector#8):
The webmentions from mastodon/fediverse via fed.brid.gy do not have author email address, so I get the following error:
If I add a check
array_key_exists('email', $webmention['author'])
and pass an empty string asauthorEmail
if the email does not exist, it works.Should I raise a PR with this change? Are there other fields you recommend checking for existence before saving the comment?