![](/static/253f0d9/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/st9xYggWap.png)
Interesting. I didn’t know about Akkoma, Pleroma, and MRF. For a future reference,
Japanese Speaker. I can read/write some English but not well, so corrections are always appreciated.
プログラミングや音楽に興味があります。いまはkbinのソースやActivityPubの仕様を読んだりしています。
Interesting. I didn’t know about Akkoma, Pleroma, and MRF. For a future reference,
I think you’re right. In CGI, web server spawns a process for each incoming request to the CGI app, so the author provide static files for visitors to reduce the overhead.
Edit: here is the repository: https://codeberg.org/seppo/seppo and written in OCaml, so the single file CGI app is a compiled binary.
Maybe some rules in nginx.conf has been delegated to nginx-internal.conf.
I suspect your instance was used to backup the original communities.
You shouldn’t post the auth
value here - it works like a username and password.
Can you run the code against another instance, and curl https://lemmy.ml/api/v3/post/list
?
Our software is built on the reasonable assumption that third party servers cannot be trusted. For example, we cache and reprocess images and videos for you to view, so that the originating server cannot get your IP address, browser name, or time of access.
I hope Lemmy also implements the image/media caching in the not so distant future. Currently, Lemmy Web UI sends a lot of HTTP requests to external servers like imgur. (Github Issue)
It seems OAuth2 hasn’t implemented yet. At this time,
to get auth
value, username and password are required:
# Python
url = 'https://<instance_name>/user/login'
data = {'username_or_email': username_or_email,
'password': password}
response = requests.post(url, json=data)
json = response.json()
auth = json['jwt']
Since the endpoint recieves JSON then returns JSON, you may need to send following HTTP headers explicitly:
Content-Type: application/json
Accept: application/json
There doesn’t seem to be a way to access eg the communities tab via activitypub? Any Help?
If you’re writing client-to-server part (not server-to-server part), try curl 'https://<lemmy-instance>/api/v3/community/list?sort=Hot'
, and an API client libraries written in Python..
I guess reddit will close the current free-tier API once the new dev platform for moderators settles down.
Cheese Day