aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
authorFChannel <=>2021-01-25 13:02:40 -0800
committerFChannel <=>2021-01-25 13:02:40 -0800
commit7823265b9a7bea93befdd9b04c4332be5c5b0404 (patch)
treeb0cd6f742ae8637a8ed9a9323a5b9b6e2f662010 /OutboxPost.go
parent3b923a6f098cacf35f309e44a4c67a6a576fba4e (diff)
feedback loop fix with getting actor collection
Diffstat (limited to 'OutboxPost.go')
-rw-r--r--OutboxPost.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/OutboxPost.go b/OutboxPost.go
index 30c2cc5..898d9e8 100644
--- a/OutboxPost.go
+++ b/OutboxPost.go
@@ -76,7 +76,7 @@ func ParseOutboxRequest(w http.ResponseWriter, r *http.Request, db *sql.DB) {
if IsActivityLocal(db, activity) {
switch activity.Type {
case "Create":
- if(true) {
+ if(true) { // add condition for creating
object = GetObjectFromActivity(activity)
writeObjectToDB(db, object)
w.WriteHeader(http.StatusCreated)
@@ -456,7 +456,6 @@ func GetActivityFromJson(r *http.Request, db *sql.DB) Activity {
if respActivity.Type == "Note" {
jObj = GetObjectFromJson(body)
- jObj.AtContext.Context = ""
nType = "Create"
} else {
jObj = GetObjectFromJson(respActivity.ObjectRaw)