MCPcopy
hub / github.com/writefreely/writefreely / getSlug

Function getSlug

posts.go:1333–1335  ·  view source on GitHub ↗

TODO: merge this into getSlugFromPost or phase it out

(title, lang string)

Source from the content-addressed store, hash-verified

1331
1332// TODO: merge this into getSlugFromPost or phase it out
1333func getSlug(title, lang string) string {
1334 return getSlugFromPost("", title, lang)
1335}
1336
1337func getSlugFromPost(title, body, lang string) string {
1338 if title == "" {

Callers 9

signupWithRegistrationFunction · 0.85
FediverseHandleMethod · 0.85
newCollectionFunction · 0.85
handleUsernameCheckFunction · 0.85
getValidUsernameFunction · 0.85
GetUserForAuthMethod · 0.85
CreatePostMethod · 0.85
UpdateOwnedPostMethod · 0.85
CreateUserFunction · 0.85

Calls 1

getSlugFromPostFunction · 0.85

Tested by

no test coverage detected