From 78cbbad268b88e6517a1e298ab66a99f8d3f8704 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Thu, 28 Jan 2021 16:13:26 -0800 Subject: reject activity --- OutboxPost.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OutboxPost.go') diff --git a/OutboxPost.go b/OutboxPost.go index c2bf7fe..16d9f5f 100644 --- a/OutboxPost.go +++ b/OutboxPost.go @@ -512,6 +512,8 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { } if !RemoteActorHasAuth(activity.Actor.Id, auth[1]) { + response := RejectActivity(activity) + MakeActivityRequest(db, response) return } @@ -545,7 +547,7 @@ func ParseInboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) { MakeActivityRequest(db, response) } else { fmt.Println("follow request for rejected") - response := RejectFollow(activity) + response := RejectActivity(activity) MakeActivityRequest(db, response) } } -- cgit v1.2.3