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

Enhancement: add the ability to parse messages from Peertube, Kbin, and Lemmy #55

Closed
csolisr opened this issue Jun 24, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@csolisr
Copy link

csolisr commented Jun 24, 2023

Currently, if an user is following an account on a service that is not a microblog (such as Peertube, Kbin, or Lemmy) the backfill requests fails, typically with the error message "Error parsing toot URL". Checking on the source code, it seems like the application is hardcoded to support only URLs from Mastodon, Pleroma, and PixelFed. What is required to parse URLs from the other services listed above?

@nanos
Copy link
Owner

nanos commented Jun 25, 2023

Thanks for your interest in this. I’d love to see FediFetcher extended for other servers/protocols, so this is something I’d very gladly see any PRs for.

The following is needed, in order to make this possible:

Firstly you need to figure out if peertube, kbin, and lemmy actually support the Mastodon context api? Any server that doesn’t, is impossible to support without major rewrite. (I did look into doing this via the ActivityPub API, but support for that is amazingly even sketchier than for the mastodon api). I’d be open to this, but it would introduce extra complexity.

For any server that supports the mastodon api, it’s really easy to implement:

  1. write a case for extracting status ID from status url in the parse_url function:

def parse_url(url, parsed_urls):

  1. write a case for extracting profile ID from profile URL in the parse_user_url function here:

def parse_user_url(url):

that would be it.

@nanos
Copy link
Owner

nanos commented Jun 29, 2023

I'm really really please to see @Teqed is currently working on a PR to implement Lemmy support for both backfilling profiles and fetching context in #56

Also serves as a good template on how to import posts from software that doesn't support the Mastodon API!

@nanos nanos added the enhancement New feature or request label Jul 3, 2023
@nanos
Copy link
Owner

nanos commented Aug 5, 2023

With Lemmy implemented, I’ve split this out into two separate issues: #73 and #74

@nanos nanos closed this as completed Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants