Commit 94badbc8 authored by Matt Baer's avatar Matt Baer

Only log ActivityPub info when debugging

parent 42a47258
...@@ -254,7 +254,9 @@ func handleFetchCollectionInbox(app *app, w http.ResponseWriter, r *http.Request ...@@ -254,7 +254,9 @@ func handleFetchCollectionInbox(app *app, w http.ResponseWriter, r *http.Request
// 2) Errors are propagated to res.Deserialize call below // 2) Errors are propagated to res.Deserialize call below
m["@context"] = []string{activitystreams.Namespace} m["@context"] = []string{activitystreams.Namespace}
b, _ := json.Marshal(m) b, _ := json.Marshal(m)
log.Info("Follow: %s", b) if debugging {
log.Info("Follow: %s", b)
}
_, followID := f.GetId() _, followID := f.GetId()
if followID == nil { if followID == nil {
...@@ -287,7 +289,9 @@ func handleFetchCollectionInbox(app *app, w http.ResponseWriter, r *http.Request ...@@ -287,7 +289,9 @@ func handleFetchCollectionInbox(app *app, w http.ResponseWriter, r *http.Request
m["@context"] = []string{activitystreams.Namespace} m["@context"] = []string{activitystreams.Namespace}
b, _ := json.Marshal(m) b, _ := json.Marshal(m)
log.Info("Undo: %s", b) if debugging {
log.Info("Undo: %s", b)
}
a.AppendObject(u.Raw()) a.AppendObject(u.Raw())
_, to = u.GetActor(0) _, to = u.GetActor(0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment