From 9a875722b101892477715482b9b0823762850749 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 17 Jan 2022 20:01:43 -0800 Subject: [PATCH] Add server URL to profile data. Closes https://github.com/owncast/owncast/issues/1675 --- activitypub/apmodels/actor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activitypub/apmodels/actor.go b/activitypub/apmodels/actor.go index bdae45073..5c96e0ebb 100644 --- a/activitypub/apmodels/actor.go +++ b/activitypub/apmodels/actor.go @@ -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) }