mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 13:45:19 +00:00
use nodeInfo.Source instead of startActivity.Source
This commit is contained in:
parent
8116214727
commit
b2a9b53041
|
@ -93,14 +93,14 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
nodeInfo, err := createNodeInfo(ctx, rawActorID)
|
nodeInfo, err := createNodeInfo(ctx, rawActorID)
|
||||||
log.Info("RepositoryInbox: nodeInfo validated: %v", nodeInfo)
|
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 {
|
if err != nil {
|
||||||
ctx.ServerError("Validate actorId", err)
|
ctx.ServerError("Validate actorId", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Info("RepositoryInbox: actorId validated: %v", actorID)
|
log.Info("RepositoryInbox: actorId validated: %v", actorID)
|
||||||
// parse objectID (repository)
|
// 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 {
|
if err != nil {
|
||||||
ctx.ServerError("Validate objectId", err)
|
ctx.ServerError("Validate objectId", err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue