mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 12:49:52 +01:00
use nodeInfo.Source instead of startActivity.Source
This commit is contained in:
parent
8116214727
commit
b2a9b53041
1 changed files with 2 additions and 2 deletions
|
@ -93,14 +93,14 @@ func RepositoryInbox(ctx *context.APIContext) {
|
|||
nodeInfo, err := createNodeInfo(ctx, rawActorID)
|
||||
log.Info("RepositoryInbox: nodeInfo validated: %v", nodeInfo)
|
||||
|
||||
actorID, err := forgefed.NewPersonID(actorUri, string(activity.Source))
|
||||
actorID, err := forgefed.NewPersonID(actorUri, string(nodeInfo.Source))
|
||||
if err != nil {
|
||||
ctx.ServerError("Validate actorId", err)
|
||||
return
|
||||
}
|
||||
log.Info("RepositoryInbox: actorId validated: %v", actorID)
|
||||
// parse objectID (repository)
|
||||
objectID, err := forgefed.NewRepositoryID(activity.Object.GetID().String(), string(activity.Source))
|
||||
objectID, err := forgefed.NewRepositoryID(activity.Object.GetID().String(), string(nodeInfo.Source))
|
||||
if err != nil {
|
||||
ctx.ServerError("Validate objectId", err)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue