💾 Archived View for bbs.geminispace.org › u › mbays › 19200 captured on 2024-08-31 at 15:50:51. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Re: "BBS has been updated to a work-in-progress version of..."
@skyjake Nice to see the edit parameter here. I tried it in my koreader client, but get a bubble error that NoneType has no parameter startswith. Any idea what that could mean?
Aug 24 · 7 days ago
🕹️ skyjake [OP/mod...] · Aug 25 at 05:04:
Looks like my code assumes the Titan "mime" parameter is always included in the request, even though it should be optional. The code is trying to check that the MIME type of the edited content is text.
I guess your client doesn't send "mime"? I'll update Bubble to assume it's text if unspecified, maybe just detecting valid UTF-8 encoding.
EDIT: Fix applied.
@skyjake Thanks, it seems that is the problem -- my client omits the mime param if it's text/gemini, and if I set it to text/plain instead then editing works. However, I'm using the present tense because I still get the same error on editing with no mime parameter.
🕹️ skyjake [OP/mod...] · Aug 25 at 16:35:
Thanks for testing. I applied another fix. I missed a second usage of the mime parameter... At least now when I modify Lagrange to omit "mime", it works for me. (Should've tested properly the first time, sorry.)
@skyjake Thanks, now it works! Much better UI than the old approach.
🕹️ skyjake [OP/mod...] · Aug 27 at 12:03:
Great!
Yeah I agree, the edit actions are perfectly suited for this use case. :)
BBS has been updated to a work-in-progress version of Bubble. There are a couple of useful additions so far: comment action that merges the comment into the previous post in the thread, if the authors are the same support for the Titan "edit" parameter for a more seamless text editing experience (requires client support!) In addition to the comment author, moderators and the admin have the ability to merge comments. I'll be applying this in cases where the same user comments multiple times...
💬 skyjake [mod...] · 9 comments · 4 likes · Aug 21 · 10 days ago