Skip to content

v2.1.2

Choose a tag to compare

@amiantos amiantos released this 11 Aug 06:43
· 154 commits to main since this release
64cf696

What's Changed

Link Preview Overhaul

The link preview system has been overhauled and requires some more steps to use link previews successfully. One big benefit to this new system is that we've got video preview images!

Previews are now resolved by lurker-previews, a second container that does all the fetching and media parsing, so your main server never dials a user-supplied URL or runs a media parser over hostile bytes. Because previews cannot work without it, pointing at a decoder is the on switch — there is no separate flag any more.

Two variables change:

2.1.1 2.1.2
LURKER_LINK_PREVIEWS=on LURKER_PREVIEWS_URL=http://lurker-previews:8030
LURKER_PREVIEW_USER_AGENT=… same name, but set it on the decoder

Add the service to your compose file and point the main server at it:

services:
  lurker-previews:
    image: ghcr.io/amiantos/lurker-previews:latest
    restart: unless-stopped
    environment:
      - LURKER_PREVIEWS_ALLOW_PRIVATE=1  # this is insecure, read docs/SELF_HOSTING.md to learn more

  lurker:
    environment:
      - LURKER_PREVIEWS_URL=http://lurker-previews:8030
      - LURKER_PREVIEW_CACHE_MODE=local # this, or s3, is required for video posters to work

Full setup, the egress model, and hardening: Link previews & inline media in docs/SELF_HOSTING.md.

Favorite Uploads & Uploads Quick Access

There is now a star icon you can assign to your uploads, so you can favorite gifs or images you've uploaded and want to use repeatedly. The paperclip icon in the status bar now brings up a little overlay allowing you to quickly access your favorite or recent uploads to insert into chat.

Commits

  • Docs: link previews for operators and users by @amiantos in #772
  • Link previews: stop relaying video and audio by @amiantos in #777
  • Link previews: isolate the decoder into lurker-previews (M3 + posters) by @amiantos in #779
  • Inline media polish: pad image-only messages, drop the 4-tile mosaic cap by @amiantos in #780
  • Link previews: warn when the decoder is unreachable, and document the shared-network requirement by @amiantos in #781
  • Star uploads to keep them at hand by @amiantos in #782
  • Bump Lurker version to 2.1.2 by @amiantos in #783

Full Changelog: v2.1.1...v2.1.2