save links to the external attachments we don't want to save
This commit is contained in:
parent
ab8d03ffef
commit
cd7626a515
|
@ -22,6 +22,7 @@ import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"html"
|
||||||
"image"
|
"image"
|
||||||
"io"
|
"io"
|
||||||
"log"
|
"log"
|
||||||
|
@ -538,7 +539,13 @@ func xonkxonk(user *WhatAbout, item interface{}) *Honk {
|
||||||
if donk != nil {
|
if donk != nil {
|
||||||
xonk.Donks = append(xonk.Donks, donk)
|
xonk.Donks = append(xonk.Donks, donk)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
u = html.EscapeString(u)
|
||||||
|
content += fmt.Sprintf(
|
||||||
|
`<p>External attachment: <a href="%s" rel=noreferrer>%s</a>`, u, u)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
log.Printf("unknown attachment: %s", at)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tags, _ := jsongetarray(obj, "tag")
|
tags, _ := jsongetarray(obj, "tag")
|
||||||
|
|
Loading…
Reference in New Issue