api: standardise strip fn names

This commit is contained in:
Adhityaa Chandrasekar
2018-07-24 12:30:45 +05:30
parent a8ecbd9717
commit c57bc6a39b
11 changed files with 16 additions and 16 deletions

View File

@@ -150,7 +150,7 @@ func domainImportDisqus(domain string, url string) (int, error) {
commentHex, err := commentNew(
commenterHex[post.Author.Email],
domain,
stripPath(threads[post.ThreadId.Id].URL),
pathStrip(threads[post.ThreadId.Id].URL),
parentHex,
html2md.Convert(post.Message),
"approved",
@@ -185,7 +185,7 @@ func domainImportDisqusHandler(w http.ResponseWriter, r *http.Request) {
return
}
domain := stripDomain(*x.Domain)
domain := domainStrip(*x.Domain)
isOwner, err := domainOwnershipVerify(o.OwnerHex, domain)
if err != nil {
bodyMarshal(w, response{"success": false, "message": err.Error()})