mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-18 06:44:22 +01:00
Render inline parent note and mentions in RSS
This commit is contained in:
6
data.go
6
data.go
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user