mirror of
https://github.com/versia-pub/activitypub.git
synced 2026-03-13 10:59:17 +01:00
Add created_at field to user and person models
This commit is contained in:
parent
8a4f5b795c
commit
c8077e5f29
2 changed files with 4 additions and 1 deletions
|
|
@ -131,6 +131,8 @@ impl Object for user::Model {
|
|||
url: Set(json.url.to_string()),
|
||||
follower_count: Set(0),
|
||||
following_count: Set(0),
|
||||
created_at: Set(Utc::now()),
|
||||
last_refreshed_at: Set(Utc::now()),
|
||||
..Default::default()
|
||||
};
|
||||
let model = model.insert(_data.database_connection.as_ref()).await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue