mirror of
https://framagit.org/veretcle/scootaloo.git
synced 2025-07-20 17:11:19 +02:00
feat: add links in fields attribute
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user