remove tags from telegram post
This commit is contained in:
@@ -29,16 +29,6 @@ func formatMemory(mem *search.Memory, publicURL string) string {
|
||||
// Content
|
||||
b.WriteString(escapeHTML(mem.Memo.Content))
|
||||
|
||||
// Tags
|
||||
if len(mem.Memo.Tags) > 0 {
|
||||
b.WriteString("\n\n")
|
||||
tags := make([]string, len(mem.Memo.Tags))
|
||||
for i, t := range mem.Memo.Tags {
|
||||
tags[i] = "#" + t
|
||||
}
|
||||
b.WriteString(strings.Join(tags, " "))
|
||||
}
|
||||
|
||||
// Link to original
|
||||
memoURL := fmt.Sprintf("%s/%s", publicURL, mem.Memo.Name)
|
||||
b.WriteString("\n\n<a href=\"" + memoURL + "\">Оригинал</a>")
|
||||
|
||||
Reference in New Issue
Block a user