mirror of
1
Fork 0

Add logging

This commit is contained in:
erik 2024-03-26 16:53:02 +01:00
parent 436466dcad
commit 45cddb4ac7
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func LikeActivity(ctx context.Context, form any, repositoryID int64) (int, strin
// parse actorID (person) // parse actorID (person)
actorURI := activity.Actor.GetID().String() actorURI := activity.Actor.GetID().String()
log.Info("actorURI was: %v", actorURI)
federationHost, err := GetFederationHostForUri(ctx, actorURI) federationHost, err := GetFederationHostForUri(ctx, actorURI)
if err != nil { if err != nil {
return http.StatusInternalServerError, "Wrong FederationHost", err return http.StatusInternalServerError, "Wrong FederationHost", err
@ -130,6 +131,7 @@ func CreateFederationHostFromAP(ctx context.Context, actorID forgefed.ActorID) (
func GetFederationHostForUri(ctx context.Context, actorURI string) (*forgefed.FederationHost, error) { func GetFederationHostForUri(ctx context.Context, actorURI string) (*forgefed.FederationHost, error) {
// parse actorID (person) // parse actorID (person)
log.Info("Input was: %v", actorURI)
rawActorID, err := forgefed.NewActorID(actorURI) rawActorID, err := forgefed.NewActorID(actorURI)
if err != nil { if err != nil {
return nil, err return nil, err