mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-13 16:26:50 +00:00
Improve participants lists
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user