mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 06:25:31 +00:00
higlight the need for id normalization
This commit is contained in:
parent
231bdb65b8
commit
94880d64f4
|
@ -81,6 +81,9 @@ func RepositoryInbox(ctx *context.APIContext) {
|
||||||
log.Info("RepositoryInbox: Activity.Actor %v", activity.Actor)
|
log.Info("RepositoryInbox: Activity.Actor %v", activity.Actor)
|
||||||
|
|
||||||
// assume actor is: "actor": "https://codeberg.org/api/v1/activitypub/user-id/12345" - NB: This might be actually the ID? Maybe check vocabulary.
|
// assume actor is: "actor": "https://codeberg.org/api/v1/activitypub/user-id/12345" - NB: This might be actually the ID? Maybe check vocabulary.
|
||||||
|
// "https://Codeberg.org/api/v1/activitypub/user-id/12345"
|
||||||
|
// "https:443//codeberg.org/api/v1/activitypub/user-id/12345"
|
||||||
|
// "https://codeberg.org/api/v1/activitypub/../activitypub/user-id/12345"
|
||||||
// parse actor
|
// parse actor
|
||||||
actor, err := activitypub.ParseActorIDFromStarActivity(activity)
|
actor, err := activitypub.ParseActorIDFromStarActivity(activity)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue