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
[API] Create endpoint to confirm a pending follower request #7887
Comments
That would be perfect 👍 |
Curious question, how do you decide which endpoint to use in Fedilab? Is there a matrix by target software? I'm surprised you welcome combining a Twitter endpoint to a couple of Mastodon's endpoint to interact with Friendica. |
In fact, I am not really choosing which endpoints to use because I want to use them all :) |
@stom79 BTW: where can I place some feature requests? Currently quoted posts aren't displayed well. |
I started working on this instead of the custom profile fields feature. |
Could you provide me examples so I can compare with the web app and work on that issue. Otherwise, issues for Fedilab are here: https://framagit.org/tom79/fedilab/issues |
The quotes are described here: https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/intro-to-tweet-json#quotetweet Additionally to the regular text they have got some The |
OK. I will work on it: https://framagit.org/tom79/fedilab/issues/367 |
Also, could we agree to use the same URL for endpoints that will come with the Mastodon API? I mean they will start by /api/(v1|v2)/same_endpoint_name (and parameters)? That will really help in future when some endpoints will be migrated to the Mastodon API. On my end, it's really not a problem to mix api for a same software (I already do it for Pixelfed). |
I would prefer implementing new API calls with Mastodon-like endpoints. But I'm unsure if we will have it done for the current release that is planned for the end of the year. We currently do have some ugly behaviour with reshares that are having priority. |
Yes, that's what we meant when we say we implement Mastodon/Twitter's API endpoint. We use the same URL, same parameters and same return values. |
OK. I checked and I would need to have them attached to the status object. I can't do special calls for each cardview that would be too costly. The html content will not help for apps as they don't run webview. Also, I noticed that the api returns some empty links like, I guess for a media gallery? |
The "quoted_status" is attached to the original "status" object and contains the whole stuff (the HTML, the user array and so on). There is no need for refetching anything. Isn't it possible to "simply" attach it with some |
Not so simple to mix (transform html) ie via friendica_html |
Can you please move over this discussion to Fedilab's issue tracker? |
First part is done, now I need to provide the endpoint to accept/reject a follow request. This should be faster as I won’t have to rewrite the entire API documentation again 😅 |
You have to ensure to not confirm requests from native DFRN. Only AP, Diaspora and DFRN via AP can be confirmed via API. |
Thanks for the tip. Should I exclude DFRN contact follow requests from the GET endpoint list? |
It's slightly more complicated than simply DFRN contacts. Have a look at the "protocol" field as well. When this is filled (with AP), then it can be confirmed as well. |
Ok thanks. |
Do you know the function to accept requests or should I help searching for it? BTW: If you want to add some endpoint to follow someone as well, have a look at |
No, I'm going to limit myself to the task at hand. I was planning on following the web modules. |
Wait. I haven't pulled that one yet. 😁 |
I was assuming that by the time @stom79 would have read my message and found time to test, you would already have. |
Now I'm ready. |
Any news @stom79 ? |
Currently, the POST call to <html>
<head>
<title>Not found</title>
</head>
<body>
<h1>Not found</h1>
<p></p>
</body>
</html> Could it be related to an error with the id %s? |
OK. Please ignore my previous message. I was not using the new endpoint for getting follow requests and user ids were different. |
@MrPetovan possibly we should always publish the public contact id? I guess this avoids some confusion. |
I don't think so, the endpoint is |
Closed by #7930 |
Part of #6739
What about Mastodon's API endpoints:
cc @stom79
The text was updated successfully, but these errors were encountered: