Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.fait.ch
lemmy_support·Lemmy Supportbyolivier

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

View original on lemmy.fait.ch
7

2 replies

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

2

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

2

You reached the end