nmtake

joined 2 years ago
[–] nmtake@lemm.ee 10 points 2 years ago (2 children)

Most cases will be solved with these settings (but some applications may need additional tweeks):

  1. Use ja_JP.UTF-8locale, or
  2. Use ~/.config/fontconfig/fonts.conf
[–] nmtake@lemm.ee 2 points 2 years ago* (last edited 2 years ago) (1 children)
[–] nmtake@lemm.ee 3 points 2 years ago

As far as I know lemm.ee has disabled image uploads. See https://lemm.ee/post/5905754 for details.

[–] nmtake@lemm.ee 1 points 2 years ago

I suspect your instance was used to backup the original communities.

[–] nmtake@lemm.ee 4 points 2 years ago* (last edited 2 years ago) (5 children)

You shouldn't post the auth value here - it works like a username and password.

[–] nmtake@lemm.ee 0 points 2 years ago (1 children)

Can you run the code against another instance, and curl https://lemmy.ml/api/v3/post/list?

[–] nmtake@lemm.ee 2 points 2 years ago* (last edited 2 years ago) (1 children)

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
[–] nmtake@lemm.ee 0 points 2 years ago (1 children)

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..

view more: ‹ prev next ›