From dd048cc9ba32e86127474cc6373caea6583b5959 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 28 Oct 2019 15:40:13 -0400 Subject: [PATCH] include hash in hashtag collection name --- activity.go | 2 +- web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activity.go b/activity.go index 3f41830..2da4941 100644 --- a/activity.go +++ b/activity.go @@ -558,7 +558,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { case "Add": xid, ok = item.GetString("object") if ok { - // check target... + // check target... if !needxonkid(user, xid) { log.Printf("don't need added obj: %s", xid) return nil diff --git a/web.go b/web.go index 001a839..de50483 100644 --- a/web.go +++ b/web.go @@ -780,7 +780,7 @@ func showontology(w http.ResponseWriter, r *http.Request) { j := junk.New() j["@context"] = itiswhatitis j["id"] = fmt.Sprintf("https://%s/o/%s", serverName, name) - j["name"] = name + j["name"] = "#" + name j["attributedTo"] = user.URL j["type"] = "OrderedCollection" j["totalItems"] = len(xids)