Skip to content

Commit

Permalink
WebFinger Add alias to stream response
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Aug 29, 2024
1 parent 300853f commit 64edd51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/stream_webfinger.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ func (service *Stream) LoadWebFinger(token string) (digit.Resource, error) {
return digit.Resource{}, derp.NewBadRequestError(location, "Stream Template does not define an Actor", stream.TemplateID)
}

// Make a WebFinger resource for this user.
// Make a WebFinger resource for this Stream.
result := digit.NewResource("acct:"+token+"@"+domain.NameOnly(service.host)).
Alias(service.host+"/"+stream.Token).
Alias(stream.URL).
Link(digit.RelationTypeSelf, model.MimeTypeActivityPub, stream.ActivityPubURL()).
// Link(digit.RelationTypeHub, model.MimeTypeJSONFeed, stream.JSONFeedURL()).
Expand Down

0 comments on commit 64edd51

Please sign in to comment.