diff options
Diffstat (limited to 'route/util.go')
-rw-r--r-- | route/util.go | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/route/util.go b/route/util.go index 74926b4..1b0eee7 100644 --- a/route/util.go +++ b/route/util.go @@ -150,17 +150,21 @@ func ParseOutboxRequest(ctx *fiber.Ctx, actor activitypub.Actor) error { } } - activity, err := nObj.CreateActivity("Create") - if err != nil { - return util.MakeError(err, "ParseOutboxRequest") - } + go func(nObj activitypub.ObjectBase) { + activity, err := nObj.CreateActivity("Create") + if err != nil { + config.Log.Printf("ParseOutboxRequest Create Activity: %s", err) + } - activity, err = activity.AddFollowersTo() - if err != nil { - return util.MakeError(err, "ParseOutboxRequest") - } + activity, err = activity.AddFollowersTo() + if err != nil { + config.Log.Printf("ParseOutboxRequest Add FollowersTo: %s", err) + } - go activity.MakeRequestInbox() + if err := activity.MakeRequestInbox(); err != nil { + config.Log.Printf("ParseOutboxRequest MakeRequestInbox: %s", err) + } + }(nObj) var id string op := len(nObj.InReplyTo) - 1 |