// UndoAnchorEventAcknowledgement handles a notification that the previous acknowledgement of an anchor
// event was undone. The given additional references are removed from the anchor link store so that they
// are no longer included in WebFinger responses.
UndoAnchorEventAcknowledgement handles a notification that the previous acknowledgement of an anchor
event was undone. The given additional references are removed from the anchor link store so that they
are no longer included in WebFinger responses.
// UndoAnchorEventAcknowledgement handles a notification that the previous acknowledgement of an anchor // event was undone . The given additional references are removed from the anchor link store so that they // are no longer included in WebFinger responses .
func (p *Handler) UndoAnchorEventAcknowledgement(actor, anchorRef *url.URL, additionalAnchorRefs []*url.URL) error {
	logger.Infof("Anchor event acknowledgement was undone [%s] for anchor %s. Additional anchors: %s",
		actor, hashlink.ToString(anchorRef), hashlink.ToString(additionalAnchorRefs...))
	links, err := getLinks(anchorRef, additionalAnchorRefs)
	if err != nil {
		return fmt.Errorf("get links: %w", err)
	}
	if err := p.anchorLinkStore.DeleteLinks(links); err != nil {
		return fmt.Errorf("delete links: %w", err)
	}
	return nil
}
func ( p * Handler ) UndoAnchorEventAcknowledgement ( actor , anchorRef * url . URL , additionalAnchorRefs [ ] * url . URL ) error { logger . Infof ( " " , actor , hashlink . ToString ( anchorRef ) , hashlink . ToString ( additionalAnchorRefs ... ) ) links , err := getLinks ( anchorRef , additionalAnchorRefs ) if err != nil { return fmt . Errorf ( " " , err ) } if err := p . anchorLinkStore . DeleteLinks ( links ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
UndoAnchorEventAcknowledgement handles a notification that the previous acknowledgement of an anchor
event was undone.
UndoAnchorEventAcknowledgement handles a notification that the previous acknowledgement of an anchor event was undone .