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

firefish getStatusContext: add ancestors by calling notes/conversation #2225

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

sftblw
Copy link
Contributor

@sftblw sftblw commented Nov 2, 2024

  • getStatusContext should return ancestors but firefish does not return them with notes/chilren.
  • notes/conversation does provide ancestors but It requires another call.
  • calling different api twice can be controversy about dealing options - possibly duplicating result count, but better than no ancestors at all imo.

  • tested on my iceshrimp instance; v2023.12.9 with megalodon firefish setup
  • firefish also have notes/conversation api
  • /api/notes/conversation returns ancestor in reverse order, so added .reverse() at the end.

I know this introduces unexpected behavior, so I don't mind just closing it.

- getStatusContext should return ancestors but firefish does not return them with notes/chilren.
- notes/conversation does provide ancestors but It requires another call.
- calling different api twice can be controversy about dealing options - duplicating results, but better than no ancestors at all imo.
@sftblw sftblw requested a review from h3poteto as a code owner November 2, 2024 14:26
Copy link
Owner

@h3poteto h3poteto left a comment

Choose a reason for hiding this comment

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

Thank you!

@h3poteto h3poteto merged commit 3db5f0e into h3poteto:master Nov 5, 2024
13 checks passed
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