diff options
Diffstat (limited to 'activitypub/actor.go')
-rw-r--r-- | activitypub/actor.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activitypub/actor.go b/activitypub/actor.go index 4142685..540d159 100644 --- a/activitypub/actor.go +++ b/activitypub/actor.go @@ -1221,6 +1221,16 @@ func (actor Actor) ProcessInboxCreate(activity Activity) error { if err := actor.ArchivePosts(); err != nil { return util.MakeError(err, "ActorInbox") } + + activity.Object.Actor = actor.Id + + go func(obj ObjectBase) { + err := obj.SendEmailNotify() + + if err != nil { + config.Log.Println(err) + } + }(activity.Object) } } |