Browse Source

Add server URL to profile data. Closes https://github.com/owncast/owncast/issues/1675

pull/1678/head
Gabe Kangas 4 years ago
parent
commit
9a875722b1
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 3
      activitypub/apmodels/actor.go

3
activitypub/apmodels/actor.go

@ -183,6 +183,9 @@ func MakeServiceForAccount(accountName string) vocab.ActivityStreamsService { @@ -183,6 +183,9 @@ func MakeServiceForAccount(accountName string) vocab.ActivityStreamsService {
person.SetActivityStreamsSummary(summaryProperty)
// Links
if serverURL := data.GetServerURL(); serverURL != "" {
addMetadataLinkToProfile(person, "Stream", serverURL)
}
for _, link := range data.GetSocialHandles() {
addMetadataLinkToProfile(person, link.Platform, link.URL)
}

Loading…
Cancel
Save