Revert "Support new commentsEnabled property"
This reverts commit 5e7da6678d
.
There are better standards in progress like a `capabilities` object:
https://litepub.social/litepub/lice.html
This commit is contained in:
parent
831209f4b6
commit
1dc93c076d
13
posts.go
13
posts.go
|
@ -1023,10 +1023,7 @@ func fetchPost(app *app, w http.ResponseWriter, r *http.Request) error {
|
||||||
|
|
||||||
p.Collection = &CollectionObj{Collection: *coll}
|
p.Collection = &CollectionObj{Collection: *coll}
|
||||||
po := p.ActivityObject()
|
po := p.ActivityObject()
|
||||||
po.Context = []interface{}{
|
po.Context = []interface{}{activitystreams.Namespace}
|
||||||
activitystreams.Namespace,
|
|
||||||
activitystreams.Extensions,
|
|
||||||
}
|
|
||||||
return impart.RenderActivityJSON(w, po, http.StatusOK)
|
return impart.RenderActivityJSON(w, po, http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1096,9 +1093,6 @@ func (p *PublicPost) ActivityObject() *activitystreams.Object {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
o.CommentsEnabled = false
|
|
||||||
|
|
||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1308,10 +1302,7 @@ func viewCollectionPost(app *app, w http.ResponseWriter, r *http.Request) error
|
||||||
} else if strings.Contains(r.Header.Get("Accept"), "application/activity+json") {
|
} else if strings.Contains(r.Header.Get("Accept"), "application/activity+json") {
|
||||||
p.extractData()
|
p.extractData()
|
||||||
ap := p.ActivityObject()
|
ap := p.ActivityObject()
|
||||||
ap.Context = []interface{}{
|
ap.Context = []interface{}{activitystreams.Namespace}
|
||||||
activitystreams.Namespace,
|
|
||||||
activitystreams.Extensions,
|
|
||||||
}
|
|
||||||
return impart.RenderActivityJSON(w, ap, http.StatusOK)
|
return impart.RenderActivityJSON(w, ap, http.StatusOK)
|
||||||
} else {
|
} else {
|
||||||
p.extractData()
|
p.extractData()
|
||||||
|
|
Loading…
Reference in New Issue