mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-11-01 17:09:52 +00:00
43c007ef9e
Show the latest reply in alerts without quoted email history. Share AI prompts across conversation editors and clarify browser notification settings.
17 lines
316 B
Go
17 lines
316 B
Go
package conversation
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
func absolutizeConversationReferenceLinks(content, rootURL string) string {
|
|
if rootURL == "" {
|
|
return content
|
|
}
|
|
return strings.ReplaceAll(
|
|
content,
|
|
`href="/inboxes/all/conversation/`,
|
|
`href="`+strings.TrimRight(rootURL, "/")+`/inboxes/all/conversation/`,
|
|
)
|
|
}
|