aboutsummaryrefslogtreecommitdiff
path: root/activitypub/actor.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-14 12:57:56 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit27d0796d7f775034f391ba8aaca99f2a81018842 (patch)
treea1b9f6efe413675d06423b0139f30c969adb6864 /activitypub/actor.go
parentcb9a6cf7fcf379202f2ccfc4776daf4dd1d35b9d (diff)
send to correct actors incase not following directly
Diffstat (limited to 'activitypub/actor.go')
-rw-r--r--activitypub/actor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/activitypub/actor.go b/activitypub/actor.go
index b69c831..afd9efd 100644
--- a/activitypub/actor.go
+++ b/activitypub/actor.go
@@ -143,7 +143,7 @@ func (actor Actor) AutoFollow() error {
}
func (actor Actor) DeleteCache() error {
- query := `select id from cacheactivitystream where id in (select id from cacheactivitystream where actor=$1)`
+ query := `select id from cacheactivitystream where id in (select id from cacheactivitystream where actor=$1 and id in (select id from replies where inreplyto='')) `
rows, err := config.DB.Query(query, actor.Id)
if err != nil {