aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
Diffstat (limited to 'OutboxPost.go')
-rw-r--r--OutboxPost.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/OutboxPost.go b/OutboxPost.go
index 95a7714..0280573 100644
--- a/OutboxPost.go
+++ b/OutboxPost.go
@@ -86,6 +86,7 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
}
case "Follow":
+
var validActor bool
var validLocalActor bool
@@ -104,13 +105,13 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
var verify Verify
verify.Identifier = "admin"
- verify.Board = activity.Object.Actor.Id
-
+ verify.Board = activity.Actor.Id
+
verify = GetVerificationCode(db, verify)
code := verify.Code
code = CreateTripCode(code)
- code = CreateTripCode(code)
+ code = CreateTripCode(code)
var rActivity Activity
if validActor && validLocalActor && code == auth[1] || verify.Board == Domain {