reduce number of inbox forwarding create calls by partially implementing Exists()

This commit is contained in:
kim 2025-01-15 16:02:18 +00:00
commit 3aa9abe5f3
3 changed files with 4 additions and 4 deletions

View file

@ -65,7 +65,7 @@ func (f *federatingDB) Create(ctx context.Context, asType vocab.Type) error {
// Cache entry for this create activity ID for later
// checks in the Exist() function if we see it again.
f.createdIDs.Set(ap.GetJSONLDId(asType).String(), struct{}{})
f.activityIDs.Set(ap.GetJSONLDId(asType).String(), struct{}{})
switch name := asType.GetTypeName(); name {
case ap.ActivityBlock: