Fixed that bad id bug for AP follow events
All checks were successful
/ docker (push) Successful in 1m44s
All checks were successful
/ docker (push) Successful in 1m44s
This commit is contained in:
parent
9e23f82e55
commit
cfe5047433
2 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@ import (
|
|||
"gorm.io/gorm"
|
||||
|
||||
"git.mstar.dev/mstar/linstrom/activitypub"
|
||||
"git.mstar.dev/mstar/linstrom/config"
|
||||
"git.mstar.dev/mstar/linstrom/storage-new"
|
||||
"git.mstar.dev/mstar/linstrom/storage-new/dbgen"
|
||||
"git.mstar.dev/mstar/linstrom/storage-new/models"
|
||||
|
@ -78,7 +79,7 @@ func FollowFromStorage(ctx context.Context, id string) (*ActivityFollowOut, erro
|
|||
return nil, err
|
||||
}
|
||||
out := ActivityFollowOut{
|
||||
Id: id,
|
||||
Id: config.GlobalConfig.General.GetFullPublicUrl() + "/api/activitypub/activity/follow/" + id,
|
||||
Type: "Follow",
|
||||
}
|
||||
if follower.RemoteInfo != nil {
|
||||
|
|
|
@ -15,6 +15,7 @@ func BuildActivitypubRouter() http.Handler {
|
|||
router.HandleFunc("/activity/delete/{id}", activityDelete)
|
||||
router.HandleFunc("/activity/reject/{id}", activityReject)
|
||||
router.HandleFunc("/activity/update/{id}", activityUpdate)
|
||||
router.HandleFunc("/activity/follow/{id}", activityFollow)
|
||||
router.HandleFunc("/note/{id}", objectNote)
|
||||
router.HandleFunc("/note/{id}/reactions", noteReactions)
|
||||
return router
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue