Dandelion is a fair source project. View the code on Github · See the design guide

Commits on Nov 20, 2026
bcf8e89

Add /stats/images, checking libvips on the server it runs on

Render's libvips is Debian's, not the one CI or a laptop has, and a format it was built without (HEIC needs libheif, the avatar Pango and its font) would only fail when someone uploads one. So /stats/images (ImageChecks) runs, on whichever server serves it: that libvips is loaded, its version, and that Dragonfly runs on DragonflyVips; each format read and written as a thumbnail, HEIC from a small real one (lib/image_checks/sample.heic); an upload's PNG stored as a JPEG on white, a HEIC as a JPEG, a large photo shrunk, EXIF removed and a turned photo stood upright, and SVG and PDF refused; the thumbnails pages ask for; and an avatar's initials. Each works in memory through Dragonfly.app, storing nothing, and shows how long it took.

The production checks read what's been stored in the last day or week: the thumbnails made, by format (a stored file's uid starts with when it was stored, so the indexed uid finds them), and that new events' images are JPEGs. Without libvips the page says so in one check rather than failing each.

Commits on Nov 19, 2026
cb023a2

Draw avatars, YouTube thumbnails and imports' theme colours with libvips, and drop ImageMagick

The last of MiniMagick, so the app runs no ImageMagick at all:

  • Generated avatars: the initials drawn by libvips (Pango) in the same font and sizes, cut out of white at WASH. They're centred by their ink rather than the font's line, which only shows with accents
  • YouTube thumbnails: fetched with Faraday, with timeouts, rather than MiniMagick's open-uri, then cropped to 16:9 and the play button laid over by libvips. Anything but a JPEG is a 404 rather than an error
  • Imports' theme colours: the cover's top-left pixel, read by libvips, with no temp file to clean up

mini_magick goes, with config/imagemagick/policy.xml and MAGICK_CONFIGURE_PATH, which only ImageMagick read, the test fake that refused it, with_imagemagick, and ImageMagick's installs in CI and script/agent-env.

Their tests no longer stub the drawing: the avatar's checks the PNG (its size, the wash and the letters cut out), YouTube's the crop and the button by their pixels, from a frame banded so a crop from the wrong row shows, and the imports' a real cover whose top-left is #1A2B3B, a colour JPEG keeps.

81c405d

Run Dragonfly on libvips rather than ImageMagick

Dragonfly.app takes DragonflyVips::Plugin (lib/dragonfly_vips.rb) in place of its ImageMagick plugin, so images are analysed and resized in this process, reading only the header to measure them, with no delegates, file-reading coders, URL fetches or Ghostscript. It takes the same arguments, so derivative URLs and stored derivatives carry on. Uploads still reach it only past ImageSignature, and it refuses any loader but JPEG, PNG, GIF, WebP and HEIC's.

MiniMagick still runs ImageMagick (the avatar, YouTube thumbnails and imports' theme colours), so config/imagemagick/policy.xml stays, loaded for it.

Tests run real libvips: the fake ImageMagick keeps only its refusal of MiniMagick, and without_imagemagick, which stubbed Dragonfly's shell, is without_libvips, failing a test whose block hands libvips a file. images_test.rb checks Dragonfly refuses SVG and PostScript on libvips, and the policy through MiniMagick. The app loads libvips as it boots, so every CI group installs it, and ImageMagick only the images group. Render's Debian bookworm has libvips 8.14, built with libheif.

2f72f46

Add a libvips plugin for Dragonfly, taking the ImageMagick plugin's arguments, to replace it

lib/dragonfly_vips.rb analyses and processes images with libvips (ruby-vips) in this process: it reads only the header to analyse and streams when it resizes, and has none of the delegates, file-reading coders, URL fetches or Ghostscript that config/imagemagick/policy.xml denies ImageMagick. It takes the same arguments as Dragonfly's ImageMagick plugin (thumb('400x400'), '1920x1920>', '500x500#', encode('jpg', '-quality 90')), as derivative URLs and DragonflyJob signatures are made from them, so URLs out there keep working and stored derivatives keep being served. Nothing uses it yet: switching Dragonfly.app to it comes next.

Where it differs from ImageMagick, on purpose: it strips EXIF (a photo's GPS position among it), converting colours to sRGB first as the profile goes with it; turns a photo's pixels as its EXIF orientation says and measures it as shown; puts transparent pixels on white in a JPEG; and only reads JPEG, PNG, GIF, WebP and HEIC (ImageSignature's formats), with libvips' untrusted loaders blocked. thumb keeps the image's own format unless given 'format', not the name's, as uploads now ask for JPEG.

ruby-vips is required by the plugin rather than at boot, so the app boots without libvips. Bundler 4 dropped the lockfile's generic ruby platform on adding ffi, so it locks x86_64-linux and aarch64-linux instead. CI's images group and script/agent-env install libvips-tools.

1f8d051

Store every uploaded or imported image as a JPEG, whatever its name says: a JPEG named .png or .heic was stored as one

after_assign renamed an image to

The fake ImageMagick copied a JPEG written to a .png unchanged, which hid this: it now writes a PNG, as ImageMagick does.

Existing images stored as PNG or HEIC (27 events, 14 accounts and 9 organisations since October 2025) are left as they are; they need reprocessing to become JPEGs.

0cb5311

Use && and || rather than and and or everywhere, as they bind more loosely than = and can set a variable to half an expression

Style/AndOr now enforces always, not just in conditions. x = y or return becomes an assignment and a guard, and or raise becomes || raise(...).

a1b6197

Drop the option to hide gathering content from members until they pay, so every member has the same access

Unpaid members of a gathering that demanded payment still saw the newsfeed and got comment emails from threads the team pages refused them. Rather than gate those too, every member now sees everything members see: demand_payment, Membership#confirmed? and confirmed_membership_required! (now membership_required! everywhere) are gone, and the tests of payment gating with them.

f5a7e08

Key cached PayPal tokens by their secret too, so an organisation given another's PayPal client id and any secret can't use that one's cached token

Paypal kept each Puma worker's OAuth tokens by host and client id alone. Client ids aren't secret, so an organisation saved with another's client id and a made-up secret had its PayPal requests (listing and creating webhooks on save, then checkouts and refunds) sent with that organisation's token while it was cached. The key now includes a SHA-256 digest of the secret, so a wrong secret fetches its own token and PayPal refuses it.

2677507

Don't save Zapier's API keys, or the values of other tokens, keys and codes in query strings and referrers, in page_views and sign_ins

The page view check skipped paths starting /z/ but not /z itself, Zapier's sign-in check, so GET /z?api_key=... saved the account's API key in page_views.query_string. It now skips the same paths that sign in with an API key. RequestFields also saved query strings and referrers whole, so links' feedback tokens, sign-in codes and the like were kept too: they're now filtered with Trace.filter_query, as traces already are.

Keys and tokens already saved stay in the collections until those documents are removed.

97bdffd

Only take contributions and donations to Dandelion in the currencies we take, so one in HUF or ISK, which Stripe counts in hundredths but Money in whole units, can't count as 100 times what was paid

POST /o/:slug/pay and POST /accounts/pay passed params[:currency] to Stripe unchecked. The forms only send FIAT_CURRENCIES, but a hand-made request for 4750 HUF charged 4,750 HUF and recorded 475,000 HUF, marking an organisation paid up for a hundredth of what it owed. Both routes now refuse other currencies, and OrganisationContribution and AccountContribution validate it as EventBoost does.

59dbb83

Turn a listing page the concurrency limit refuses away with a page that reloads itself, rather than plain text

A signed-out visitor who met ListingConcurrencyLimit on a page they opened (or in an embed's frame) got its plain-text 503 as the page. Now they get a small HTML page, served without the layout or the database, that says listings are busy and reloads after Retry-After. Feeds, JSON and XHR still get the text.

Claude-Session: https://claude.ai/code/session_015HnU1MmCx52P8RZGioAMu2

547d3be

Don't add an organisation's near_select_suffix to a local group named after a country in its events page's Location select, so The Psychedelic Society's Portugal group reads (and is geocoded as) Portugal rather than "Portugal, UK", and likewise USA and United Kingdom

3dda348

Don't fail resending a single ticket whose buyer deleted their account

A ticket with no "ordered for" email whose buyer deleted their account (Account's tickets are dependent: :nullify) has no one to send it to, but POST /tickets/:id/send_ticket queued Ticket#send_ticket anyway and said "The ticket was resent.", and the job then raised NoMethodError on the nil account in the worker. Guard Ticket#send_ticket as Order#send_tickets is, and have the route say there's no one to send it to instead of queueing the job. A ticket ordered for someone else still goes to their email.

Closes #363

90bb598

Keep Stripe metadata keys unique when cutting them to 40 characters

Two booking questions that start alike (Accessibility requirements for wheelchair users / for the hearing loop) cut to the same 40-character key, and rebuilding the hash with to_h kept only the last answer, so the other never reached Stripe. A key that's already taken now ends _2, _3... within the 40 characters.

1d7b721

Skip February 29 birthdays without a date this year in /birthdays.ics

Account#next_birthday is nil for a February 29 birthday in a year without one, and the feed called .to_date on it, so one followed leapling turned the whole feed into a 500. Skip the account, as the birthdays page and the homepage card already do.

Closes #364

01b7b44

Join the booked gathering, not the transferred event's, on a deferred ticket join

When a ticket's gathering join was deferred because the gathering's lock was busy, the job reloaded the ticket and resolved event.gathering afresh. If the order was transferred meanwhile, the buyer joined the destination event's gathering, bypassing the check on who may link a gathering to an event.

The retry now carries the gathering, event and buyer the ticket had when it was paid for, and joins only if the ticket still has them; it finds the ticket by id, so a ticket deleted meanwhile ends the job.

Closes #361

82cd911

Update packages to the newest releases out of the 7-day cooldown, from script/update_packages.rb (the package updates workflow)

8cbb8dd

Update Ruby to 4.0.10 for Regexp and String vulnerabilities

https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/ affects Ruby 4.0.0 through 4.0.9. ruby/setup-ruby goes to v1.342.0, the first release that knows 4.0.10.

Claude-Session: https://claude.ai/code/session_015HnU1MmCx52P8RZGioAMu2

Commits on Nov 18, 2026
ed412eb

Sanitise ticketholder names and drop angle brackets from email recipient variables

The ticketholder name route saved the name with set, which skips validation, so sanitize_fields never cleaned it, and the name's first word reaches mass emails to ticket holders as %recipient.firstname%, which Mailgun fills into the HTML body unescaped. The route now saves through validation (400 if the save fails).

As defence in depth, EmailHelper.recipient_value now drops < and > from every recipient variable, whatever path stored the value. No variable Dandelion builds carries markup.

Claude-Session: https://claude.ai/code/session_015HnU1NzFZYsyLBJyLz7J99

6a77313

Show the calendar key only to a session that entered a sign in code, so one from a forwarded email can't copy it from /events/my, /birthdays or the home page and keep reading the account's feeds after its owner signs out every browser (revoke_sessions! keeps the key, so calendar subscriptions survive): their iCal icons now go to /accounts/api_key, which asks for a code and lists the feeds' links