-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat: Get first existing gravatar of all emails of the contact #1703
Conversation
app/Models/Contact/Contact.php
Outdated
* | ||
* @param int $size | ||
* @return string|bool | ||
*/ | ||
public function getGravatar($size) | ||
{ | ||
$email = $this->getFirstEmail(); | ||
$emails = $this->contactFields() |
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.
This is basically the content of getFirstEmail
method.
This method is now not used anywhere in the app.
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.
Indeed. Do you wish to remove it?
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.
Yes, if it isn't used...
This pull request has been automatically locked since there |
Add ability to get gravatar, not for the first email, but for every emails: first gravatar detected is returned.