the mastodon made me do it; i am blameless
This commit is contained in:
parent
32ed638147
commit
ebf1000f1c
|
@ -515,6 +515,8 @@ var re_romalink = regexp.MustCompile(`https://[[:alnum:].]+/objects/[[:alnum:]-]
|
||||||
var re_qtlinks = regexp.MustCompile(`>https://[^\s<]+<`)
|
var re_qtlinks = regexp.MustCompile(`>https://[^\s<]+<`)
|
||||||
|
|
||||||
func qutify(user *WhatAbout, content string) string {
|
func qutify(user *WhatAbout, content string) string {
|
||||||
|
// well this is gross
|
||||||
|
content = strings.ReplaceAll(content, `</span><span class="ellipsis">`, "")
|
||||||
mlinks := re_qtlinks.FindAllString(content, -1)
|
mlinks := re_qtlinks.FindAllString(content, -1)
|
||||||
for _, m := range mlinks {
|
for _, m := range mlinks {
|
||||||
m = m[1 : len(m)-1]
|
m = m[1 : len(m)-1]
|
||||||
|
|
Loading…
Reference in New Issue