all repos — honk @ 1ae28c75a94d118c92afa0da7e01e915ab99b2bf

my fork of honk

expand rid to full when we save the reply
Ted Unangst tedu@tedunangst.com
Thu, 25 Apr 2019 13:10:26 -0400
commit

1ae28c75a94d118c92afa0da7e01e915ab99b2bf

parent

c1d01a3cd3718106b189b308a98952d7fa4c4348

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M fun.gofun.go

@@ -38,9 +38,6 @@ h.URL = h.Honker + "/h/" + h.XID

} 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, '/')
M honk.gohonk.go

@@ -813,7 +813,6 @@ UserID: userinfo.UserID,

Username: userinfo.Username, What: "honk", XID: xid, - RID: rid, Date: dt, } if noise[0] == '@' {

@@ -825,6 +824,9 @@ var convoy string

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 @@ xonkaud, c := whosthere(rid)

honk.Audience = append(honk.Audience, xonkaud...) convoy = c } + honk.RID = rid } if convoy == "" { convoy = "data:,electrichonkytonk-" + xfiltrate()