External image as community icon/banner?

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

7 points · 2 comments · view on lemmy.world

2 Comments

olivier@lemmy.fait.ch · 2 pts · 3y

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")

olivier@lemmy.fait.ch · 2 pts · 1y

It seems recent versions of Lemmy don't have that problem anymore, right?