zulip / zulip-archive

Generate a static HTML archive of messages in any combination of streams in a Zulip organization.
MIT License
75 stars 42 forks source link

Showing images #68

Open mattecapu opened 3 years ago

mattecapu commented 3 years ago

At the moment, images from threads are displayed by using the original Zulip URL which results in a 401 if the server is not public (e.g. here).

Does someone know a workaround for this? As last resort I might consider downloading them during text scraping.

timabbott commented 3 years ago

I am not aware of a workaround for this. I think structurally, the right solution is probably for zulip-archive to download images using its own credentials and include them in its archive, with some caching story to avoid downloading them all every day.

(The "web public streams" work in the Zulip server might also provide a convenient way to make images world-readable, so one could also wait for that)

starseeker commented 3 months ago

Is there any way to configure zulip-archive to stash local copies of images along with the message content?

timabbott commented 3 months ago

I believe that remains unsupported, though I don't think it'd be a very complex feature to add. PRs welcome!