[backend/services] Set user birthday and location based on ASActor vcard properties
This commit is contained in:
parent
b79de70345
commit
5039fb0a3b
1 changed files with 8 additions and 8 deletions
|
@ -203,12 +203,12 @@ public class UserService(
|
|||
{
|
||||
User = user,
|
||||
Description = bio,
|
||||
//Birthday = TODO,
|
||||
//Location = TODO,
|
||||
Fields = fields?.ToArray() ?? [],
|
||||
UserHost = user.Host,
|
||||
Url = actor.Url?.Link,
|
||||
Pronouns = pronouns
|
||||
Birthday = actor.Birthday,
|
||||
Location = actor.Location,
|
||||
Fields = fields?.ToArray() ?? [],
|
||||
UserHost = user.Host,
|
||||
Url = actor.Url?.Link,
|
||||
Pronouns = pronouns
|
||||
};
|
||||
|
||||
var publicKey = new UserPublickey
|
||||
|
@ -343,8 +343,8 @@ public class UserService(
|
|||
user.UserProfile.Description = MfmConverter.FromHtml(actor.Summary, hashtags: asHashtags).Mfm;
|
||||
}
|
||||
|
||||
//user.UserProfile.Birthday = TODO;
|
||||
//user.UserProfile.Location = TODO;
|
||||
user.UserProfile.Birthday = actor.Birthday;
|
||||
user.UserProfile.Location = actor.Location;
|
||||
user.UserProfile.Fields = fields?.ToArray() ?? [];
|
||||
user.UserProfile.UserHost = user.Host;
|
||||
user.UserProfile.Url = actor.Url?.Link;
|
||||
|
|
Loading…
Add table
Reference in a new issue