aboutsummaryrefslogtreecommitdiff
path: root/activitypub/actor.go
diff options
context:
space:
mode:
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 {