From e358eb07ec4ce873f750c0b75d7b23df4da2fbb8 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 28 Jan 2021 20:29:11 -0800 Subject: view individual post from url --- OutboxPost.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OutboxPost.go') 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 { -- cgit v1.2.3