Skip to content
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

Return custom suggestions #1118

Merged
merged 2 commits into from
May 30, 2023
Merged

Return custom suggestions #1118

merged 2 commits into from
May 30, 2023

Conversation

dholms
Copy link
Collaborator

@dholms dholms commented May 29, 2023

Allow a PDS to return a curated list of suggested follows

These suggested follows are stored in a simple database table.

export async function up(db: Kysely<unknown>): Promise<void> {
await db.schema
.createTable('suggested_follow')
.addColumn('did', 'varchar', (col) => col.primaryKey())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any use for a column here to control the order?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually yeah that's probably smart 👍 otherwise we just get them in did-alphabetic order

@dholms dholms merged commit 87fc4ce into main May 30, 2023
@dholms dholms deleted the custom-suggestions branch May 30, 2023 18:23
mloar pushed a commit to mloar/atproto that referenced this pull request Sep 26, 2023
* return custom suggestions on server

* allow ordered suggestions
mloar pushed a commit to mloar/atproto that referenced this pull request Nov 15, 2023
* return custom suggestions on server

* allow ordered suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants