mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
xep2md: Include JID in author entry
This commit is contained in:
parent
3dc3253a38
commit
d3d6c62426
@ -260,7 +260,9 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
events.add_handler("author/", function (event)
|
events.add_handler("author/", function (event)
|
||||||
if author.email then
|
if author.email and author.jid then
|
||||||
|
author = string.format("%s %s <%s> <xmpp:%s>", author.firstname, author.surname, author.email, author.jid);
|
||||||
|
elseif author.email then
|
||||||
author = string.format("%s %s <%s>", author.firstname, author.surname, author.email);
|
author = string.format("%s %s <%s>", author.firstname, author.surname, author.email);
|
||||||
else
|
else
|
||||||
author = string.format("%s %s", author.firstname, author.surname);
|
author = string.format("%s %s", author.firstname, author.surname);
|
||||||
|
Loading…
Reference in New Issue
Block a user