-
Notifications
You must be signed in to change notification settings - Fork 46
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
AP => Bluesky: don't wait for follow before sending posts #999
Comments
Done! Hopefully. |
Hah, true, I forgot the other part of this that I planned to do: have the bot user follow them back. Reopening. |
Done! Now, when someone on the fediverse follows Now, for the second part of this: backfilling and making that bot user follow all existing fediverse users. |
Running this script now: bot = Web.get_by_id('bsky.brid.gy')
now = util.now().isoformat()
for user in ActivityPub.query(ActivityPub.enabled_protocols == 'atproto'):
follow_id = f'https://bsky.brid.gy/#follow-back-{user.key.id()}-{now}'
follow = Object(id=follow_id, source_protocol='web', our_as1={
'objectType': 'activity',
'verb': 'follow',
'id': follow_id,
'actor': bot.key.id(),
'object': user.key.id(),
})
try:
user.send(follow, user.target_for(user.obj), from_user=bot)
except BaseException as e:
logging.info('', exc_info=True) |
Right now, if you opt in from the fediverse, we still don't send your posts to Bluesky until someone there follows you. This consistently confuses people; we should change it to proactively send posts, especially since fediverse people are explicitly opting in.
The text was updated successfully, but these errors were encountered: