guid creation: Take the hostname from mail addresses for mail posts
This commit is contained in:
parent
9fc0e02bf9
commit
9e721c0908
1 changed files with 6 additions and 0 deletions
|
@ -260,6 +260,12 @@ class Item extends BaseObject
|
|||
$prefix_host = $parsed['host'];
|
||||
}
|
||||
}
|
||||
|
||||
// Is it in the format data@host.tld? - Used for mail contacts
|
||||
if (empty($prefix_host) && !empty($item['author-link']) && strstr($item['author-link'], '@')) {
|
||||
$mailparts = explode('@', $item['author-link']);
|
||||
$prefix_host = array_pop($mailparts);
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($item['plink'])) {
|
||||
|
|
Loading…
Reference in a new issue