From c19340849b3d83a657ea43415c30fffe32888c11 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 1 Apr 2020 00:10:35 -0400 Subject: [PATCH] fixing caching for jonkers --- activity.go | 2 +- web.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/activity.go b/activity.go index c920d96..43b68ff 100644 --- a/activity.go +++ b/activity.go @@ -1537,7 +1537,7 @@ func updateMe(username string) { j["published"] = dt j["to"] = []string{thewholeworld, user.URL + "/followers"} j["type"] = "Update" - jo := junkuser(user) + jo, _ := asjonker(username) j["object"] = jo msg := j.ToBytes() diff --git a/web.go b/web.go index a6054c7..567479a 100644 --- a/web.go +++ b/web.go @@ -1155,6 +1155,7 @@ func saveuser(w http.ResponseWriter, r *http.Request) { } somenamedusers.Clear(u.Username) somenumberedusers.Clear(u.UserID) + oldjonkers.Clear(u.Username) updateMe(u.Username)