MCPcopy Create free account
hub / github.com/davecheney/pub / IsLocal

Method IsLocal

models/actor.go:190–197  ·  view source on GitHub ↗

IsLocal indicates whether the actor is local to the instance.

()

Source from the content-addressed store, hash-verified

188// FindByURI returns an account by its URI if it exists locally.
189func (a *Actors) FindByURI(uri string) (*Actor, error) {
190 var actor Actor
191 err := a.db.Scopes(PreloadActor).Where("URI = ?", uri).Take(&actor).Error
192 return &actor, err
193}
194
195// Refesh schedules a refresh of an actor's data.
196func (a *Actors) Refresh(actor *Actor) error {
197 db := a.db.Clauses(clause.OnConflict{
198 Columns: []clause.Column{{Name: "actor_id"}},
199 DoUpdates: clause.AssignmentColumns([]string{
200 "created_at",

Callers 2

AcctMethod · 0.95
IsRemoteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected