only fill in reply handles if logged in user
This commit is contained in:
parent
b9bb752d7c
commit
c1caef5679
28
fun.go
28
fun.go
|
@ -83,21 +83,23 @@ func reverbolate(userid int64, honks []*Honk) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if user.Options.MentionAll {
|
if user != nil {
|
||||||
hset := []string{"@" + h.Handle}
|
if user.Options.MentionAll {
|
||||||
for _, a := range h.Audience {
|
hset := []string{"@" + h.Handle}
|
||||||
if a == h.Honker || a == user.URL {
|
for _, a := range h.Audience {
|
||||||
continue
|
if a == h.Honker || a == user.URL {
|
||||||
}
|
continue
|
||||||
_, hand := handles(a)
|
}
|
||||||
if hand != "" {
|
_, hand := handles(a)
|
||||||
hand = "@" + hand
|
if hand != "" {
|
||||||
hset = append(hset, hand)
|
hand = "@" + hand
|
||||||
|
hset = append(hset, hand)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
h.Handles = strings.Join(hset, " ")
|
||||||
|
} else if h.Honker != user.URL {
|
||||||
|
h.Handles = "@" + h.Handle
|
||||||
}
|
}
|
||||||
h.Handles = strings.Join(hset, " ")
|
|
||||||
} else if h.Honker != user.URL {
|
|
||||||
h.Handles = "@" + h.Handle
|
|
||||||
}
|
}
|
||||||
if h.URL == "" {
|
if h.URL == "" {
|
||||||
h.URL = h.XID
|
h.URL = h.XID
|
||||||
|
|
Loading…
Reference in New Issue