Merge pull request #1373 from writefreely/fix-ghost-follow

Fix ActivityPub following from Ghost
This commit is contained in:
Matt Baer 2025-06-03 16:04:19 -04:00 committed by GitHub
commit 01e239e657
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -436,6 +436,17 @@ func handleFetchCollectionInbox(app *App, w http.ResponseWriter, r *http.Request
a.AppendObject(f.Raw())
_, to = f.GetActor(0)
obj := f.Raw().GetObjectIRI(0)
if obj == nil {
if debugging {
log.Error("GetObjectIRI on Follow for actor is empty; trying object")
}
ao := f.Raw().GetObject(0)
if ao == nil {
log.Error("Fell back to GetObject and none parsed, so no actor ID! Follow request probably FAILED!")
} else {
obj = ao.GetId()
}
}
a.AppendActor(obj)
// First get actor information