mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
Add logging
This commit is contained in:
parent
436466dcad
commit
45cddb4ac7
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue