Improve participants lists

This commit is contained in:
Dennis Reimann
2023-10-02 16:45:33 +02:00
parent fee4f92c54
commit f1716fe0d1
4 changed files with 47 additions and 32 deletions

View File

@@ -37,8 +37,11 @@ const truncate = (str, wordCount) => {
return [head, tail]
}
const memberUrl = member =>
member.url || member.nostr ? `https://snort.social/p/${member.nostr}` : `https://twitter.com/${member.twitter}`
const memberUrl = member => {
if (member.url) return member.url
else if (member.nostr) return `https://snort.social/p/${member.nostr}`
else if (member.twitter) return `https://twitter.com/${member.twitter}`
}
module.exports = {
markdown: mdTransformer.render,