tangled
alpha
login
or
join now
moshyfawn.dev
/
core
forked from
tangled.org/core
0
fork
atom
Monorepo for Tangled
0
fork
atom
overview
issues
1
pulls
pipelines
appview/notifications: secure count method
moshyfawn.dev
1 month ago
40b4d95c
1cb2fb5c
verified
This commit was signed with the committer's
known signature
.
moshyfawn.dev
SSH Key Fingerprint:
SHA256:zMUZNiu9BhtlaeTbTExPgqsAr7esqNKjsML00hI5JiQ=
+1
1 changed file
expand all
collapse all
unified
split
appview
notifications
notifications.go
+1
appview/notifications/notifications.go
···
92
92
func (n *Notifications) getUnreadCount(w http.ResponseWriter, r *http.Request) {
93
93
user := n.oauth.GetUser(r)
94
94
if user == nil {
95
95
+
http.Error(w, "Forbidden", http.StatusUnauthorized)
95
96
return
96
97
}
97
98