feat: add links in fields attribute

This commit is contained in:
VC
2022-12-14 10:18:30 +01:00
parent 3fdd81df50
commit 6ffcbfc89a
7 changed files with 130 additions and 122 deletions

View File

@@ -268,7 +268,7 @@ pub async fn profile(config: Config, bot: Option<bool>) {
&twitter_user.entities.description.urls,
);
// let fields_attributes = get_attribute_from_url(&twitter_user.entities.url);
let fields_attributes = get_attribute_from_url(&twitter_user.entities.url);
let display_name = Some(String::from_utf16_lossy(
&twitter_user
@@ -284,7 +284,6 @@ pub async fn profile(config: Config, bot: Option<bool>) {
};
let update_creds = UpdateCredentialsInputOptions {
discoverable: None,
bot,
display_name,
note,
@@ -293,9 +292,8 @@ pub async fn profile(config: Config, bot: Option<bool>) {
.await?,
),
header,
locked: None,
source: None,
fields_attributes: None,
fields_attributes,
..Default::default()
};
let mastodon = get_mastodon_token(&mastodon_config);