microblog.pub/app
Josh Washburne 0ef2f1f89d Remove surrounding whitespace before processing query
Ran into this issue twice quite by accident with fat-fingering copy/paste on
my phone. If there is any whitespace in front of or trailing after the
lookup query, it returns an "Unexpected error". Stripping the string is the
quick and dirty way to clean it.

I hate modifying the same function argument name in place like that, but it
is valid Python. If you want me to assign it to a separate variable and
replace all the references of "query", let me know.

Thanks!
2022-08-31 08:16:32 +02:00
..
scss No more inline CSS 2022-08-29 21:42:54 +02:00
static Fix the delete button 2022-08-30 19:09:51 +02:00
templates Fix the delete button 2022-08-30 19:09:51 +02:00
utils No more inline CSS 2022-08-29 21:42:54 +02:00
__init__.py Initial commit for new v2 2022-06-22 20:11:22 +02:00
activitypub.py Improve summary 2022-08-24 20:12:10 +02:00
actor.py Fix mention processing bug 2022-08-27 09:10:14 +02:00
admin.py Tweak lookup 2022-08-27 09:24:21 +02:00
ap_object.py Various tweaks about AP types 2022-08-13 22:37:44 +02:00
boxes.py Fix outbox delete side effects 2022-08-30 20:05:10 +02:00
config.py Remove inlined JS 2022-08-29 20:11:31 +02:00
database.py Improve debug mode 2022-08-28 11:24:46 +02:00
httpsig.py Improve debug mode 2022-08-28 11:24:46 +02:00
incoming_activities.py Fix OG metadata processing 2022-08-28 19:05:06 +02:00
indieauth.py Bootstrap Micropub support, and start support for Update activities 2022-07-17 18:43:08 +02:00
key.py Fix config wizard 2022-07-04 20:25:27 +02:00
ldsig.py Tweak model for access tokens 2022-07-10 12:06:16 +02:00
lookup.py Remove surrounding whitespace before processing query 2022-08-31 08:16:32 +02:00
main.py Harden the CSP a bit for values that don't inherit default-src. Set Permissions-Policy. Remove TODO 2022-08-30 08:21:11 +02:00
media.py Improve actor icons handling and admin 2022-06-25 08:23:28 +02:00
micropub.py Finish Question/poll support 2022-07-24 12:36:59 +02:00
models.py Fix outbox delete side effects 2022-08-30 20:05:10 +02:00
outgoing_activities.py Improve outgoing worker 2022-08-11 23:10:24 +02:00
prune.py Fix inbox processing for deleted actors 2022-08-19 19:36:23 +02:00
source.py Improve summary 2022-08-24 20:12:10 +02:00
templates.py Fix the delete button 2022-08-30 19:09:51 +02:00
uploads.py Also save outbox attachment thumbnails as webp 2022-08-26 09:05:55 +02:00
webfinger.py More thorough URL checks 2022-07-15 20:50:27 +02:00
webmentions.py Webmention improvements 2022-07-19 20:38:32 +02:00