remotenotes

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: AGPL-3.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package remotenotes resolves and materializes remote note parents for request-scoped write-path flows such as create-status reply creation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedFetcher

type AuthorizedFetcher interface {
	FetchObject(ctx context.Context, objectURL string, signingActor *activitypub.Actor) (any, error)
}

AuthorizedFetcher fetches a remote ActivityPub object in the local replying-actor context when protected parent acquisition is required.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver resolves reply parents locally first and materializes unresolved canonical remote URLs on the create-status write path.

func NewReplyParentResolver

func NewReplyParentResolver(
	statusRepo statusRepository,
	objectRepo objectRepository,
	domainBlockRepo domainBlockRepository,
	fetcher AuthorizedFetcher,
	localDomain string,
	logger *zap.Logger,
) *Resolver

NewReplyParentResolver constructs a create-status reply-parent resolver over storage-first lookup plus optional authorized remote acquisition.

func (*Resolver) ResolveReplyParent

func (r *Resolver) ResolveReplyParent(
	ctx context.Context,
	author *storage.Account,
	rawInReplyTo string,
	requestedVisibility string,
) (*notes.ResolvedReplyParent, error)

ResolveReplyParent resolves a reply parent for a single create-note request, materializing a canonical remote parent when it is not yet stored locally.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL