From 60b6bdf1c021fcffff397c7b1439a1407ed90f0a Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Tue, 1 Jun 2021 00:45:05 -0700 Subject: changed actor to type Group and other clean up --- main.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'main.go') 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) { -- cgit v1.2.3