expand rid to full when we save the reply
This commit is contained in:
parent
49d1574575
commit
02f1ae8221
3
fun.go
3
fun.go
|
@ -38,9 +38,6 @@ func reverbolate(honks []*Honk) {
|
|||
} else {
|
||||
h.URL = h.XID
|
||||
}
|
||||
if h.RID != "" && strings.IndexByte(h.RID, '/') == -1 {
|
||||
h.RID = h.Honker + "/h/" + h.RID
|
||||
}
|
||||
h.Noise = mentionize(h.Noise)
|
||||
} else {
|
||||
idx := strings.LastIndexByte(h.Honker, '/')
|
||||
|
|
5
honk.go
5
honk.go
|
@ -813,7 +813,6 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
|||
Username: userinfo.Username,
|
||||
What: "honk",
|
||||
XID: xid,
|
||||
RID: rid,
|
||||
Date: dt,
|
||||
}
|
||||
if noise[0] == '@' {
|
||||
|
@ -825,6 +824,9 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
|||
if rid != "" {
|
||||
xonk := getxonk("", rid)
|
||||
if xonk != nil {
|
||||
if xonk.Honker == "" {
|
||||
rid = "https://" + serverName + "/u/" + xonk.Username + "/h/" + rid
|
||||
}
|
||||
honk.Audience = append(honk.Audience, xonk.Audience...)
|
||||
convoy = xonk.Convoy
|
||||
} else {
|
||||
|
@ -832,6 +834,7 @@ func savehonk(w http.ResponseWriter, r *http.Request) {
|
|||
honk.Audience = append(honk.Audience, xonkaud...)
|
||||
convoy = c
|
||||
}
|
||||
honk.RID = rid
|
||||
}
|
||||
if convoy == "" {
|
||||
convoy = "data:,electrichonkytonk-" + xfiltrate()
|
||||
|
|
Loading…
Reference in New Issue