appview: invalidate cached identity on receiving identity / account deactivation events from the jetstream #268

merged
opened by ptr.pet targeting master from [deleted fork]: master
Changed files
+9
appview
idresolver
+9
appview/idresolver/resolver.go
··· 102 102 wg.Wait() 103 103 return results 104 104 } 105 + 106 + func (r *Resolver) InvalidateIdent(ctx context.Context, arg string) error { 107 + id, err := syntax.ParseAtIdentifier(arg) 108 + if err != nil { 109 + return err 110 + } 111 + 112 + return r.directory.Purge(ctx, *id) 113 + }