aboutsummaryrefslogtreecommitdiff
path: root/OutboxPost.go
diff options
context:
space:
mode:
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)