Skip to content

Enhancement: Follow from Lanyard - Add Bluesky follow/unfollow button #71

@renderghost

Description

@renderghost

Description

Add interactive follow/unfollow button to public profiles that integrates with Bluesky's follow system.

Features

  • For signed-in users:
    • Shows current follow state ("Following" / "Follow")
    • Allows follow/unfollow directly from Lanyard
    • Updates state in real-time
    • Uses authenticated Bluesky session
  • For visitors (not signed in):
    • Shows generic "Follow" button
    • Opens Bluesky profile in new tab on click

Implementation

  1. Check if viewer is authenticated with Bluesky
  2. If authenticated:
    • Fetch current follow state via AT Protocol
    • Show toggle button with current state
    • Handle follow/unfollow actions via app.bsky.graph.follow
    • Update UI optimistically
  3. If not authenticated:
    • Show simple "Follow" link
    • Link to https://bsky.app/profile/{handle}

Benefits

  • Increases engagement between researchers
  • Reduces friction for following interesting profiles
  • Keeps users within Lanyards ecosystem
  • Leverages existing Bluesky network

Design Notes

  • Position near profile header or action buttons
  • Clear visual distinction between states
  • Loading state during follow/unfollow action

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestintegrationWorks with other products or services

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions