aboutsummaryrefslogtreecommitdiff
path: root/outboxPost.go
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-11-07 00:59:12 -0300
committerFChannel <>2022-06-19 12:53:29 -0700
commit7116705959bad9244893434039a0da9b500f5043 (patch)
tree54fd00840cbcfc9907d37b3bfb376fde87f48bb1 /outboxPost.go
parent972223c992ca5aa5e5d93cff3b2ee4e30182025b (diff)
last commit of the night
Diffstat (limited to 'outboxPost.go')
-rw-r--r--outboxPost.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/outboxPost.go b/outboxPost.go
index 7ab6547..3c7936b 100644
--- a/outboxPost.go
+++ b/outboxPost.go
@@ -13,13 +13,13 @@ import (
"strings"
"github.com/FChannel0/FChannel-Server/activitypub"
+ "github.com/FChannel0/FChannel-Server/db"
_ "github.com/lib/pq"
- "golang.org/x/perf/storage/db"
)
func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
- var activity Activity
+ var activity activitypub.Activity
actor := GetActorFromPath(r.URL.Path, "/")
contentType := GetContentType(r.Header.Get("content-type"))
@@ -107,7 +107,7 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
validActor = (activity.Object.Actor != "")
validLocalActor = (activity.Actor.Id == actor.Id)
- var rActivity Activity
+ var rActivity activitypub.Activity
if validActor && validLocalActor {
rActivity = AcceptFollow(activity)
rActivity = SetActorFollowingDB(rActivity)
@@ -138,8 +138,8 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
actor := CreateNewBoardDB(*CreateNewActor(name, prefname, summary, authReq, restricted))
if actor.Id != "" {
- var board []ObjectBase
- var item ObjectBase
+ var board []activitypub.ObjectBase
+ var item activitypub.ObjectBase
var removed bool = false
item.Id = actor.Id