aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-28 20:29:11 -0800
committerFChannel <=>2021-01-28 20:29:11 -0800
commite358eb07ec4ce873f750c0b75d7b23df4da2fbb8 (patch)
tree1cd9eb8854255e6ed3cd4ab0a8a69bfc1ff7279f /OutboxPost.go
parent0d4cd485b5225cfa737842de6ba0e96d6d21722b (diff)
view individual post from url
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 {