xep2md: Include JID in author entry

This commit is contained in:
Kim Alvefur 2021-02-26 12:36:32 +01:00
parent 3dc3253a38
commit d3d6c62426
1 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,9 @@ do
end
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);
else
author = string.format("%s %s", author.firstname, author.surname);