include hash in hashtag collection name
This commit is contained in:
parent
d707dda73c
commit
dd048cc9ba
|
@ -558,7 +558,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
case "Add":
|
case "Add":
|
||||||
xid, ok = item.GetString("object")
|
xid, ok = item.GetString("object")
|
||||||
if ok {
|
if ok {
|
||||||
// check target...
|
// check target...
|
||||||
if !needxonkid(user, xid) {
|
if !needxonkid(user, xid) {
|
||||||
log.Printf("don't need added obj: %s", xid)
|
log.Printf("don't need added obj: %s", xid)
|
||||||
return nil
|
return nil
|
||||||
|
|
2
web.go
2
web.go
|
@ -780,7 +780,7 @@ func showontology(w http.ResponseWriter, r *http.Request) {
|
||||||
j := junk.New()
|
j := junk.New()
|
||||||
j["@context"] = itiswhatitis
|
j["@context"] = itiswhatitis
|
||||||
j["id"] = fmt.Sprintf("https://%s/o/%s", serverName, name)
|
j["id"] = fmt.Sprintf("https://%s/o/%s", serverName, name)
|
||||||
j["name"] = name
|
j["name"] = "#" + name
|
||||||
j["attributedTo"] = user.URL
|
j["attributedTo"] = user.URL
|
||||||
j["type"] = "OrderedCollection"
|
j["type"] = "OrderedCollection"
|
||||||
j["totalItems"] = len(xids)
|
j["totalItems"] = len(xids)
|
||||||
|
|
Loading…
Reference in New Issue