aboutsummaryrefslogtreecommitdiff
path: root/route/routes
diff options
context:
space:
mode:
authorFChannel <>2022-06-12 16:20:59 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit0418dab57f9cf19540234d157a512e30a70a7152 (patch)
treee01656aa763eb33ca1114de95d9fde61db175af1 /route/routes
parentf57d5722e6f2187bea249240eb14c881f989c3c1 (diff)
error with getting object sets actor to empty
Diffstat (limited to 'route/routes')
-rw-r--r--route/routes/actor.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/route/routes/actor.go b/route/routes/actor.go
index 94623f0..1072472 100644
--- a/route/routes/actor.go
+++ b/route/routes/actor.go
@@ -81,7 +81,7 @@ func ActorInbox(ctx *fiber.Ctx) error {
for _, e := range activity.To {
actor, err := activitypub.GetActorFromDB(e)
if err != nil {
- return util.MakeError(err, "")
+ return util.MakeError(err, "ActorInbox")
}
if actor.Id != "" && actor.Id != config.Domain {
@@ -96,6 +96,7 @@ func ActorInbox(ctx *fiber.Ctx) error {
if err := activity.Object.Tombstone(); err != nil {
return util.MakeError(err, "ActorInbox")
}
+
if err := actor.UnArchiveLast(); err != nil {
return util.MakeError(err, "ActorInbox")
}