Render inline parent note and mentions in RSS

This commit is contained in:
Daniele Tonon
2023-11-17 10:05:14 +01:00
parent 92ee975060
commit 84edf714f7

View File

@@ -79,11 +79,11 @@ func (ee EnhancedEvent) RssContent() string {
content := ee.event.Content content := ee.event.Content
if ee.IsReply() { if ee.IsReply() {
nevent, _ := nip19.EncodeEvent(ee.Reply().Value(), ee.relays, ee.event.PubKey) nevent, _ := nip19.EncodeEvent(ee.Reply().Value(), ee.relays, ee.event.PubKey)
content = "In reply to nostr:" + nevent + "\n_________________________\n\n" + content content = content + "\n\n____________________\nIn reply to nostr:" + nevent
} }
content = basicFormatting(html.EscapeString(content), true, false) content = basicFormatting(html.EscapeString(content), true, false)
// content = renderQuotesAsHTML(context.Background(), content, false) content = renderQuotesAsHTML(context.Background(), content, false)
content = linkQuotes(content) // content = linkQuotes(content)
return content return content
} }