Add func to add ap links to local users (untested)
All checks were successful
/ docker (push) Successful in 4m27s
All checks were successful
/ docker (push) Successful in 4m27s
This commit is contained in:
parent
e69f53bbd7
commit
f991a1f353
7 changed files with 84 additions and 22 deletions
|
@ -84,12 +84,12 @@ func FollowFromStorage(ctx context.Context, id string) (*ActivityFollowOut, erro
|
|||
if follower.RemoteInfo != nil {
|
||||
out.Actor = follower.RemoteInfo.ApLink
|
||||
} else {
|
||||
out.Actor = userIdToApUrl(follower.ID)
|
||||
out.Actor = activitypub.UserIdToApUrl(follower.ID)
|
||||
}
|
||||
if followed.RemoteInfo != nil {
|
||||
out.Object = followed.RemoteInfo.ApLink
|
||||
} else {
|
||||
out.Object = userIdToApUrl(followed.ID)
|
||||
out.Object = activitypub.UserIdToApUrl(followed.ID)
|
||||
}
|
||||
return &out, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue