aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-01 00:45:05 -0700
committerFChannel <>2021-06-01 00:45:05 -0700
commit60b6bdf1c021fcffff397c7b1439a1407ed90f0a (patch)
treeb176b963f45777b1878e1d178877a4e033010418 /main.go
parentb7ce42c8a9a6f458cc1537f6aeefe0b5f7ab150c (diff)
changed actor to type Group and other clean up
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/main.go b/main.go
index 1942135..1be79e1 100644
--- a/main.go
+++ b/main.go
@@ -740,12 +740,8 @@ func main() {
}
if !IsIDLocal(db, id) {
- if(!isOP) {
CloseLocalReportDB(db, id, board)
CreateLocalDeleteDB(db, id, "post")
- } else {
-
- }
if(manage == "t") {
http.Redirect(w, r, "/" + *Key + "/" + board, http.StatusSeeOther)
} else if(OP != ""){
@@ -757,9 +753,6 @@ func main() {
return
}
-
-
-
if !isOP {
DeleteReportActivity(db, id)
DeleteObjectRequest(db, id)
@@ -1145,7 +1138,7 @@ func CreateNewActor(board string, prefName string, summary string, authReq []str
actor.Name = board
}
- actor.Type = "Service"
+ actor.Type = "Group"
actor.Id = fmt.Sprintf("%s", path)
actor.Following = fmt.Sprintf("%s/following", actor.Id)
actor.Followers = fmt.Sprintf("%s/followers", actor.Id)
@@ -2213,7 +2206,7 @@ func GetActorInstance(path string) (string, string) {
}
}
- re = regexp.MustCompile(`(http:\\|https:\\)?(www)?([\w\d-_.:]+)\/([\w\d-_.]+)`)
+ re = regexp.MustCompile(`(https?:\\)?(www)?([\w\d-_.:]+)\/([\w\d-_.]+)`)
httpFormat := re.MatchString(path)
if(httpFormat) {