-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add link to original AP profile to bridge accounts on Bsky #976
Comments
Yes! Great point. We do this sometimes, in some places, eg see |
Bluesky profile descriptions don't have facets, so we can't link arbitrary text. I think the best we can do right now is include URLs, and they'll get auto-linked. Sigh. More details: bluesky-social/atproto#2504 |
Also the truncation should break at word boundaries. As an example, we cut off a URL in https://bsky.app/profile/did:plc:whco57z2rz6jvi3wv3o56jdi, which is awkward. |
OK, I think I'm happy with where this is right now. Examples: https://bsky.app/profile/snarfed.indieweb.social.ap.brid.gy
https://indieweb.social/@[email protected]
|
Now to update existing users' profiles. Running this now: import pages
users = (
ActivityPub.query(ActivityPub.enabled_protocols == 'atproto',
ActivityPub.status == None).fetch()
+ ATProto.query(ATProto.enabled_protocols == 'activitypub',
ATProto.status == None).fetch())
logging.getLogger().setLevel(logging.ERROR)
for i, user in enumerate(users):
print(i, user.key.id(), user.handle)
pages.update_profile(user, user) |
Argh, scratch that, I still need to prevent the "bridged from" snippet from getting truncated. |
OK, done with that, restarting the backfill now. |
Worked on my profile, thank you! |
Great! Backfill is done, but I noticed that we're not preserving whitespace in ATProto => ActivityPub. Ugh, ok, doing that now. |
Done in snarfed/granary@85b9e19. Not going to bother re-backfilling all of those profiles; they'll refresh on their own eventually. |
Maybe this is implemented already, in which case it's not working if the bio is so long that it gets cut off.
The bridge may have to truncate the bio itself to make it fit Bsky's constraints, until/unless Bsky raises its display limits for accounts hosted elsewhere.
The text was updated successfully, but these errors were encountered: