Skip to content

Conversation

@Dobrunia
Copy link
Member

@Dobrunia Dobrunia commented Nov 8, 2025

Summary

This pull request introduces a new /my endpoint that allows authenticated users to retrieve a paginated list of their own notes.

@Dobrunia Dobrunia changed the title feat: add my notes endpoint feat: add endpoint for fetching user-created notes Nov 8, 2025
Copy link
Member

@neSpecc neSpecc left a comment

Choose a reason for hiding this comment

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

reuse existing code

* @returns list of the notes
*/
public async getNoteListByUserId(userId: User['id'], page: number): Promise<NoteList> {
public async getNoteListByUserId(userId: User['id'], page: number, filterByCreator = false): Promise<NoteList> {
Copy link
Member

Choose a reason for hiding this comment

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

why can't you use existing "userId" parameter?

const noteListPublic: NoteListPublic = {
items: noteListItemsPublic,
/**
* Get note list created by the user
Copy link
Member

Choose a reason for hiding this comment

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

I don't think that we need to introduce the separate method for that. Reuse the existing one. You can use get parameters to pass a feed type like "my"

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.

3 participants