LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.19k stars 871 forks source link

Add pictrs fetch / upload to API #1772

Open dessalines opened 3 years ago

dessalines commented 3 years ago

History: we used to forward picture requests and uploads directly to pictrs, but now pass the requests through lemmy. Since these are passed through lemmy anyway now, we should add proper websocket and HTTP API actions like the rest of our actions.

This will also remove the need for nginx when developing.

Nutomic commented 3 years ago

Then we could make separate endpoints for uploading post image, user avatar or something else. This would also allow for a better way to implement https://github.com/LemmyNet/lemmy/issues/1118.