openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 589ddf6f084b87a67f46cdc1663015f55bb13196
parent 882ff7a52368bf0a84bd59cc87d941c96b527d43
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Sat,  5 Sep 2020 20:11:17 +0300

blacklist method/2

Diffstat:
Mii-node/web.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ii-node/web.go b/ii-node/web.go @@ -313,9 +313,10 @@ func www_blacklist(user *ii.User, www WWW, w http.ResponseWriter, r *http.Reques err := www.db.Blacklist(m) if err != nil { ii.Error.Printf("Error blacklisting: %s", id) - return errors.New(err) + return err } http.Redirect(w, r, "/", http.StatusSeeOther) + return nil } func www_edit(user *ii.User, www WWW, w http.ResponseWriter, r *http.Request, id string) error {