compdemocracy / polis

:milky_way: Open Source AI for large scale open ended feedback
https://pol.is
GNU Affero General Public License v3.0
719 stars 169 forks source link

Fix url based xid assignment #1692

Closed metasoarous closed 1 year ago

metasoarous commented 1 year ago

At one point, I believe we had implemented the ability to assign xids using query strings on the participation url. If so, it must have broken at some point, because this no longer works. It's possible to get around this with an embedding app that passes in the xids via the embed code (see https://github.com/compdemocracy/polis-embed-examples), but this adds a barrier for less technical adopters, and should really be fixed.

metasoarous commented 1 year ago

Note: There was also suzinvite supported at one point (possibly still), which I think made it so that you could only click on the link once. But maybe I'm misremembering, and the "single use" just meant "single participant".

See joinWithZidOrSuzinvite, createOneSuzinvite and sendSuzinviteEmail in the server.ts code.

metasoarous commented 1 year ago

Actually, this appears to be working! We must have fixed it at some point along the way. Affixing conversation url with ?xid=<blah> actually does seem to work.