this post was submitted on 06 Sep 2023
7 points (100.0% liked)

Lemmy Support

4651 readers
24 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I'm trying to setup a community without pict-rs (and as such, without being able to host its pictures myself). I've been tinkering a bit with the API (through python clients, essentially), and I've found how to change my users's avatar to an URL, but not a community. On Lemmy.py, for instance, I have an update() method a community object, but it can't seem to modify anything...

Has anyone an idea? Thx

you are viewing a single comment's thread
view the rest of the comments
[–] olivier@lemmy.fait.ch 1 points 1 year ago* (last edited 1 year ago)

Well, I've finally found a way using plemmy instead of Lemmy.py. Basically :

from plemmy import LemmyHttp

lemmy = LemmyHttp('https://my.lemmy.instance')

lemmy.login('username','password')

lemmy.edit_community(community_id=XXX,banner="http:/yyy.tld/img.jpg")