mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 21:16:14 -06:00
fix leetle bug
This commit is contained in:
parent
9f7cd64f3c
commit
215130d1f9
2 changed files with 12 additions and 6 deletions
|
|
@ -401,11 +401,17 @@ func (f *federatingDB) acceptOtherIRI(
|
|||
// TODO: do something with type hinting here.
|
||||
apObjectType := ap.ObjectUnknown
|
||||
|
||||
// Extract appropriate approvedByURI from the Accept.
|
||||
approvedByURI, err := approvedByURI(acceptID, accept)
|
||||
if err != nil {
|
||||
return gtserror.NewErrorForbidden(err, err.Error())
|
||||
}
|
||||
|
||||
// Pass to the processor and let them handle side effects.
|
||||
f.state.Workers.Federator.Queue.Push(&messages.FromFediAPI{
|
||||
APObjectType: apObjectType,
|
||||
APActivityType: ap.ActivityAccept,
|
||||
APIRI: acceptID,
|
||||
APIRI: approvedByURI,
|
||||
APObject: objectIRI,
|
||||
Receiving: receivingAcct,
|
||||
Requesting: requestingAcct,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue