From 27d0796d7f775034f391ba8aaca99f2a81018842 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Tue, 14 Jun 2022 12:57:56 -0700 Subject: send to correct actors incase not following directly --- activitypub/actor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activitypub/actor.go') 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 { -- cgit v1.2.3