MCPcopy
hub / github.com/writefreely/writefreely / ForPublic

Method ForPublic

collections.go:324–326  ·  view source on GitHub ↗

ForPublic modifies the Collection for public consumption, such as via the API.

()

Source from the content-addressed store, hash-verified

322// ForPublic modifies the Collection for public consumption, such as via
323// the API.
324func (c *Collection) ForPublic() {
325 c.URL = c.CanonicalURL()
326}
327
328var isAvatarChar = regexp.MustCompile("[a-z0-9]").MatchString
329

Callers 5

newPostFunction · 0.95
CreateOwnedPostMethod · 0.95
fetchCollectionFunction · 0.80
fetchCollectionPostsFunction · 0.80
runJobsFunction · 0.80

Calls 1

CanonicalURLMethod · 0.95

Tested by

no test coverage detected