Added official link to profile, fix #33
This commit is contained in:
parent
5454d176dd
commit
d3aac062f9
3 changed files with 19 additions and 0 deletions
|
@ -23,5 +23,6 @@ namespace BirdsiteLive.ActivityPub
|
||||||
public Image icon { get; set; }
|
public Image icon { get; set; }
|
||||||
public Image image { get; set; }
|
public Image image { get; set; }
|
||||||
public EndPoints endpoints { get; set; }
|
public EndPoints endpoints { get; set; }
|
||||||
|
public UserAttachment[] attachment { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
9
src/BirdsiteLive.ActivityPub/Models/UserAttachment.cs
Normal file
9
src/BirdsiteLive.ActivityPub/Models/UserAttachment.cs
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
namespace BirdsiteLive.ActivityPub
|
||||||
|
{
|
||||||
|
public class UserAttachment
|
||||||
|
{
|
||||||
|
public string type { get; set; }
|
||||||
|
public string name { get; set; }
|
||||||
|
public string value { get; set; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -75,6 +75,15 @@ namespace BirdsiteLive.Domain
|
||||||
mediaType = "image/jpeg",
|
mediaType = "image/jpeg",
|
||||||
url = twitterUser.ProfileBannerURL
|
url = twitterUser.ProfileBannerURL
|
||||||
},
|
},
|
||||||
|
attachment = new []
|
||||||
|
{
|
||||||
|
new UserAttachment
|
||||||
|
{
|
||||||
|
type = "PropertyValue",
|
||||||
|
name = "Official",
|
||||||
|
value = $"<a href=\"https://twitter.com/{acct}\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">twitter.com/{acct}</span></a>"
|
||||||
|
}
|
||||||
|
},
|
||||||
endpoints = new EndPoints
|
endpoints = new EndPoints
|
||||||
{
|
{
|
||||||
sharedInbox = $"https://{_instanceSettings.Domain}/inbox"
|
sharedInbox = $"https://{_instanceSettings.Domain}/inbox"
|
||||||
|
|
Loading…
Add table
Reference in a new issue