mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 15:23:15 -06:00
[feature] Enable federation in/out of profile PropertyValue fields (#1722)
Co-authored-by: kim <grufwub@gmail.com> Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
This commit is contained in:
parent
cbb9e2d3f0
commit
0e29f1f5bb
180 changed files with 9278 additions and 1550 deletions
|
|
@ -59,11 +59,11 @@ type federatingActor struct {
|
|||
// implements the pub.FederatingActor interface.
|
||||
func newFederatingActor(c pub.CommonBehavior, s2s pub.FederatingProtocol, db pub.Database, clock pub.Clock) pub.FederatingActor {
|
||||
sideEffectActor := pub.NewSideEffectActor(c, s2s, nil, db, clock)
|
||||
customActor := pub.NewCustomActor(sideEffectActor, false, true, clock)
|
||||
sideEffectActor.Serialize = ap.Serialize // hook in our own custom Serialize function
|
||||
|
||||
return &federatingActor{
|
||||
sideEffectActor: sideEffectActor,
|
||||
wrapped: customActor,
|
||||
wrapped: pub.NewCustomActor(sideEffectActor, false, true, clock),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -165,7 +165,8 @@ func (f *federatingActor) PostInboxScheme(ctx context.Context, w http.ResponseWr
|
|||
// If activity Object is a Statusable, we'll want to replace the
|
||||
// parsed `content` value with the value from the raw JSON instead.
|
||||
// See https://github.com/superseriousbusiness/gotosocial/issues/1661
|
||||
ap.NormalizeActivityObject(activity, rawActivity)
|
||||
// Likewise, if it's an Accountable, we'll normalize some fields on it.
|
||||
ap.NormalizeIncomingActivityObject(activity, rawActivity)
|
||||
|
||||
// Allow server implementations to set context data with a hook.
|
||||
ctx, err = f.sideEffectActor.PostInboxRequestBodyHook(ctx, r, activity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue