* Adding published time to UserForm.
- Federates user creation time. Fixes #1140
* Check the user published time.
expect(userOne.actor_id).toBe(userTwo.actor_id);
expect(userOne.avatar).toBe(userTwo.avatar);
expect(userOne.banner).toBe(userTwo.banner);
+ expect(userOne.published).toBe(userTwo.published);
}
test('Create user', async () => {
let searchBeta = await searchForUser(beta, apShortname);
let userOnBeta = searchBeta.users[0];
assertUserFederation(userOnAlpha, userOnBeta);
-});
\ No newline at end of file
+});
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
matrix_user_id: None,
avatar: None,
banner: None,
+ published: None,
updated: None,
admin: false,
banned: false,
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
pub banned: bool,
pub email: Option<Option<String>>,
pub avatar: Option<Option<String>>,
+ pub published: Option<chrono::NaiveDateTime>,
pub updated: Option<chrono::NaiveDateTime>,
pub show_nsfw: bool,
pub theme: String,
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
admin: false,
banned: false,
+ published: None,
updated: None,
show_nsfw: false,
theme: "darkly".into(),
banner: None,
password_encrypted: data.password.to_owned(),
preferred_username: None,
+ published: None,
updated: None,
admin: data.admin,
banned: false,
banner,
password_encrypted,
preferred_username,
+ published: Some(read_user.published),
updated: Some(naive_now()),
admin: read_user.admin,
banned: read_user.banned,
email: None,
avatar,
banner,
+ published: person.inner.published().map(|u| u.to_owned().naive_local()),
updated: person.updated().map(|u| u.to_owned().naive_local()),
show_nsfw: false,
theme: "".to_string(),
banner: Some(cuser.banner.to_owned()),
password_encrypted: cuser.password_encrypted.to_owned(),
preferred_username: cuser.preferred_username.to_owned(),
+ published: Some(cuser.published),
updated: None,
admin: cuser.admin,
banned: cuser.banned,