mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-09 04:27:29 -06:00
work on validating incoming fed requests
This commit is contained in:
parent
e3005dc341
commit
2ed1e36ee0
9 changed files with 336 additions and 15 deletions
|
|
@ -115,6 +115,8 @@ type Account struct {
|
|||
PrivateKey *rsa.PrivateKey
|
||||
// Publickey for encoding activitypub requests, will be defined for both local and remote accounts
|
||||
PublicKey *rsa.PublicKey
|
||||
// Web-reachable location of this account's public key
|
||||
PublicKeyURI string
|
||||
|
||||
/*
|
||||
ADMIN FIELDS
|
||||
|
|
|
|||
|
|
@ -465,6 +465,7 @@ func (ps *postgresService) NewSignup(username string, reason string, requireAppr
|
|||
URL: newAccountURIs.UserURL,
|
||||
PrivateKey: key,
|
||||
PublicKey: &key.PublicKey,
|
||||
PublicKeyURI: newAccountURIs.PublicKeyURI,
|
||||
ActorType: gtsmodel.ActivityStreamsPerson,
|
||||
URI: newAccountURIs.UserURI,
|
||||
InboxURL: newAccountURIs.InboxURI,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue