mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
user extra field - remove shorten_string
This commit is contained in:
parent
bb9889cb63
commit
de80defeaf
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ def refresh_user_profile_task(user_id):
|
||||||
if field_data['type'] == 'PropertyValue':
|
if field_data['type'] == 'PropertyValue':
|
||||||
if '<a ' in field_data['value']:
|
if '<a ' in field_data['value']:
|
||||||
field_data['value'] = mastodon_extra_field_link(field_data['value'])
|
field_data['value'] = mastodon_extra_field_link(field_data['value'])
|
||||||
user.extra_fields.append(UserExtraField(shorten_string(label=field_data['name'].strip()), text=field_data['value'].strip()))
|
user.extra_fields.append(UserExtraField(label=field_data['name'].strip(), text=field_data['value'].strip()))
|
||||||
if 'type' in activity_json:
|
if 'type' in activity_json:
|
||||||
user.bot = True if activity_json['type'] == 'Service' else False
|
user.bot = True if activity_json['type'] == 'Service' else False
|
||||||
user.ap_fetched_at = utcnow()
|
user.ap_fetched_at = utcnow()
|
||||||
|
|
Loading…
Reference in a new issue