diff options
author | FChannel <=> | 2021-01-28 16:24:39 -0800 |
---|---|---|
committer | FChannel <=> | 2021-01-28 16:24:39 -0800 |
commit | 0e07bcac00acdafd2f029fb54bfd2487ef2994ce (patch) | |
tree | 455bd498f40c32dca0e53716ce22a1b7310da50b /main.go | |
parent | 78cbbad268b88e6517a1e298ab66a99f8d3f8704 (diff) |
auth for all activity req
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1608,7 +1608,7 @@ func MakeActivityRequest(db *sql.DB, activity Activity) { auth := CreateTripCode(verify.Code) auth = CreateTripCode(auth) - + for _, e := range activity.To { actor := GetActor(e) @@ -1618,9 +1618,7 @@ func MakeActivityRequest(db *sql.DB, activity Activity) { req.Header.Set("Content-Type", activitystreams) - if activity.Type == "Create" { - req.Header.Set("Authorization", "Basic " + auth) - } + req.Header.Set("Authorization", "Basic " + auth) CheckError(err, "error with sending activity req to") |