From 4dff3502ec2e923942e65cb5861c4e6307978ecb Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 5 Nov 2019 01:52:07 -0500 Subject: [PATCH] into the attic it goes --- bloat.go | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/bloat.go b/bloat.go index c04b2ac..e89675f 100644 --- a/bloat.go +++ b/bloat.go @@ -14,44 +14,3 @@ // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. package main - -import ( - "fmt" - "time" - - "humungus.tedunangst.com/r/webs/junk" -) - -func updateMe() { - var user *WhatAbout - somenumberedusers.Get(1, &user) - dt := time.Now().UTC().Format(time.RFC3339) - j := junk.New() - j["@context"] = itiswhatitis - j["id"] = fmt.Sprintf("%s/upme/%s/%d", user.URL, user.Name, time.Now().Unix()) - j["actor"] = user.URL - j["published"] = dt - j["to"] = []string{thewholeworld, user.URL + "/followers"} - j["type"] = "Update" - jo := junkuser(user) - j["object"] = jo - - msg := j.ToBytes() - - rcpts := make(map[string]bool) - for _, f := range getdubs(user.ID) { - if f.XID == user.URL { - continue - } - var box *Box - boxofboxes.Get(f.XID, &box) - if box != nil && box.Shared != "" { - rcpts["%"+box.Shared] = true - } else { - rcpts[f.XID] = true - } - } - for a := range rcpts { - deliverate(0, user.ID, a, msg) - } -}