if it's not our honk, don't show controls

master
Ted Unangst 5 years ago
parent 9df8218fdf
commit 998c59d623

@ -598,8 +598,11 @@ func showhonk(w http.ResponseWriter, r *http.Request) {
return
}
u := login.GetUserInfo(r)
if u != nil && u.UserID != user.ID {
u = nil
}
if !h.Public {
if u == nil || u.UserID != h.UserID {
if u == nil {
http.NotFound(w, r)
return

Loading…
Cancel
Save