aboutsummaryrefslogtreecommitdiff
path: root/activitypub/actor.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-12 15:36:19 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitf57d5722e6f2187bea249240eb14c881f989c3c1 (patch)
treeef8f4d23f9c40e0b0ba1ab2efb03e3795efe8ec0 /activitypub/actor.go
parentdac4b267cab31fb3a4ce301f1bcdf364fcb541a1 (diff)
first pass on federation working
Diffstat (limited to 'activitypub/actor.go')
-rw-r--r--activitypub/actor.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/activitypub/actor.go b/activitypub/actor.go
index e54088d..b69c831 100644
--- a/activitypub/actor.go
+++ b/activitypub/actor.go
@@ -818,8 +818,8 @@ func (actor Actor) IsAlreadyFollower(follow string) (bool, error) {
}
func (actor Actor) IsLocal() (bool, error) {
- actor, err := GetActorFromDB(actor.Id)
- return actor.Id != "", util.MakeError(err, "IsLocal")
+ actor, _ = GetActorFromDB(actor.Id)
+ return actor.Id != "", nil
}
func (actor Actor) IsValid() (Actor, bool, error) {
@@ -1048,7 +1048,7 @@ func (actor Actor) WriteCache() error {
}
for _, e := range collection.OrderedItems {
- if err := e.WriteCache(); err != nil {
+ if _, err := e.WriteCache(); err != nil {
return util.MakeError(err, "WriteCache")
}
}
@@ -1077,7 +1077,7 @@ func (actor Actor) MakeFollowActivity(follow string) (Activity, error) {
}
followActivity.Actor = &nactor
- followActivity.Object = &obj
+ followActivity.Object = obj
followActivity.Object.Actor = follow
followActivity.To = append(followActivity.To, follow)