mirror of
https://github.com/NicolasConstant/BirdsiteLive
synced 2025-06-05 21:49:16 +02:00
Added official link to profile, fix #33
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user