Commit Graph

214 Commits

Author SHA1 Message Date
Jason McBrayer b1eb270881 Try to fix up account_id value in accounts_dict for mismatched logins 2019-04-24 09:13:12 -04:00
Jason McBrayer a427273f63 Hopefully fix issue with re-login with different method 2019-04-24 09:03:56 -04:00
Jason McBrayer d19abee083 Fix error in oath_callback 2019-04-24 06:26:11 -04:00
Jason McBrayer 372422f9a3 Make account switching work 2019-04-23 22:29:47 -04:00
Jason McBrayer 3289adde09 Add a template for accounts list 2019-04-23 21:53:21 -04:00
Jason McBrayer c1b5eb6359 Add an endpoint for /accounts
It still needs a template.
2019-04-23 19:20:37 -04:00
Jason McBrayer 90ff4927ef Implement switch_accounts helper function 2019-04-23 18:46:54 -04:00
Jason McBrayer 8a33d255bd Fix a crash in login 2019-04-23 18:25:55 -04:00
Jason McBrayer ebf58264e8 Add accounts_dict to session, update it on logging in. 2019-04-23 18:18:11 -04:00
Jason McBrayer d911da51bc Rename some session variables
This is in preparation for adding the session dictionary of accounts
2019-04-23 18:06:57 -04:00
Jason McBrayer a099738cbb Make thread() throw an error 404 rather than 500 on a missing status 2019-04-06 16:51:13 -04:00
Jason McBrayer b8d29ecc97 Turn off caching for notifications 2019-04-02 14:31:35 -04:00
Jason McBrayer 53a0938f7b Fix filters in notifications 2019-04-02 14:31:10 -04:00
Jason McBrayer 79eea0eed1 Fix issue with poll frequency not saving 2019-03-28 08:24:28 -04:00
Jason McBrayer 67f2ea8149 Finish adding support for follow requests 2019-03-06 14:26:00 -05:00
Jason McBrayer d3ed8eef27 View for handling follow requests 2019-03-05 18:45:14 -05:00
Jason McBrayer 3a9f2b52e0 Fix mentions in redrafts
The obvious failure modes should be taken care of; there may be spacing changes.
2019-03-03 20:40:42 -05:00
Jason McBrayer b06c664cd5 Fix a crash on threads with filters 2019-02-15 20:09:32 -05:00
Jason McBrayer 0007547a7c Allow editing filters 2019-02-15 17:42:36 -05:00
Jason McBrayer e94eec081a Make sure not to match all toots if you don't have any filters 2019-02-15 17:14:05 -05:00
Jason McBrayer 3bfbc30255 Add filter deletion 2019-02-15 17:10:26 -05:00
Jason McBrayer 221f03957e Creation page for filters 2019-02-15 12:02:21 -05:00
Jason McBrayer bdc9524532 Simplify filter matching.
Concatenate filter phrases and do the re.search only once.
2019-02-15 11:28:07 -05:00
Jason McBrayer dfccfab05b List filters, create filters
Template still needs to be created for create filters, will need to update
for list filters when views to edit and delete exist
2019-02-14 22:05:18 -05:00
Jason McBrayer 8c2f357d3c Initial implementation of filters
You can't add, delete, or edit filters from brutaldon yet, but they are
applied in your timelines.
2019-02-14 22:05:18 -05:00
Jason McBrayer 5c45a31cf1 Update userinfo on settings page
There are cases where your session['user'] dictionary can be out of date, like
if you change your avatar. In that case, brutaldon will display a broken image
instead of your avatar in various places. This change updates your settings info
when you go to the settings page, in addition to as it normally does when you
log in.

Updating on every request would be possible, but it's another round trip to the
instance, and I don't want the performance hit.
2019-02-06 08:49:50 -05:00
McBrayer bc5e9e091d Remove some of the cacheing that was just added 2019-01-30 12:33:18 -05:00
McBrayer 6a6bf32646 Enable some more cacheing.
I'm not sure all of this is a good idea, and I'm not sure if all of it actually
works; in particular the fragment cacheing for toots.
2019-01-30 10:56:13 -05:00
McBrayer c4c3117caa After submitting a reply, jump right to the message you are replying to. 2019-01-29 13:38:07 -05:00
McBrayer a4dbe81aa1 Add id targets to redirects from boost/fav without JS. Resolves #48 2019-01-29 13:06:04 -05:00
Jason McBrayer 856b502cbf Fix an issue with duplicate mentions in replies on Pleroma 2019-01-27 22:50:11 -05:00
Jason McBrayer 5072defbbd Make fix to Pleroma notifications not depend on Mastodon.py fix 2019-01-27 22:46:41 -05:00
Jason McBrayer e4bbd29cc8 Fix pagination on Pleroma (probably) 2019-01-27 22:27:46 -05:00
Jason McBrayer 01f2cc7d35 Fix more ID format issues with Pleroma
Paging is still not working.
2019-01-27 22:16:15 -05:00
Jason McBrayer f0843488d1 Use a simpler check for whether content_type argument can be used to post 2019-01-27 21:06:55 -05:00
Jason McBrayer 8fc464939c Be more specific with user searches in case of Pleroma 2019-01-24 14:22:17 -05:00
Jason McBrayer cce4198a3b Use content_type when posting if it's available in your Mastodon.py
This feature hasn't been merged to mainline yet, and then it will probably
take a little longer for it to get on pip, so brutaldon has to be belt-and-
suspenders when using it.
2019-01-24 14:10:02 -05:00
Jason McBrayer 2d3d88da72 Fix local user references with domain name on Pleroma 2019-01-24 08:48:44 -05:00
Jason McBrayer 9150ba7629 Improve accuracy of user page link on Pleroma 2019-01-24 08:27:07 -05:00
Jason McBrayer 7c351ef341 Fix an issue with mentions caused by last update 2019-01-18 08:08:26 -05:00
Jason McBrayer 8615c8f801 Add username hints while typing mentions in compose box 2019-01-17 21:02:23 -05:00
Jason McBrayer 10019b34b0 Handle case of no notes seen before checking notifications 2019-01-17 19:13:08 -05:00
Jason McBrayer c7fb38b57c Add 'filter notifications" option
This reduces the number of notifications in both your tab bar and your
notifications page, by showing only mentions and new subscribers (i.e.,
things that are actionable by you).
2019-01-14 09:08:36 -05:00
Jason McBrayer b4822b87ce Make search link a modal popup if using JS 2018-12-03 17:58:08 -05:00
Jason McBrayer 4676c49482 Take out the PJAX again.
It seems initially to work with notifications, but ultimately it just doesn't
quite.
2018-11-15 14:45:40 -05:00
Jason McBrayer 03478ef33f Remove \n from initial form for replies 2018-11-12 17:55:25 -05:00
Jason McBrayer 722b2d7a3d Add more translation hooks 2018-11-07 13:07:21 -05:00
Jason McBrayer 0232ec9fd3 Add i18n hooks to models 2018-11-06 17:11:54 -05:00
Jason McBrayer b003a94fd0 Add i18n in views 2018-11-06 17:11:54 -05:00
Jason McBrayer 347ccb4bbe Restore all of the PJAX stuff because I figured out what was going wrong 2018-11-06 17:05:03 -05:00
Jason McBrayer e5040b0bbd Add modal for new toot 2018-11-01 09:53:07 -04:00
McBrayer 733d8bb453 Make notifications work on brutalist themes 2018-10-19 12:36:52 -04:00
Jason McBrayer bb65be3e8b Don't lose text or spoiler text when expanding toot form 2018-10-14 08:36:47 -04:00
Jason McBrayer 7b8c5dbb59 Add lightbox preference 2018-10-09 18:13:08 -04:00
Jason McBrayer 275e6b1fca Fix some whitespace 2018-10-09 13:00:44 -04:00
Jason McBrayer 60748e5c4b Add javascript granular settings to forms, templates, settings view 2018-10-02 12:14:03 -04:00
Jason McBrayer af4173742b Remove service worker for now (it clashed with notifications implementation) 2018-09-24 10:32:30 -04:00
Jason McBrayer e57497e957 Ensure more pages have notification badges 2018-09-21 07:32:48 -04:00
Jason McBrayer 5ced45c50b More work on notifications - polling doesn't work
It looks like it might be an intercooler limitation/bug.

May try removing the pjaxing to see if that works
2018-09-20 15:00:31 -04:00
Jason McBrayer 86ec6aed95 Non-working implementation of ajax notification badge 2018-09-20 13:00:25 -04:00
Jason McBrayer 5d848715da Fix path service worker is served from 2018-09-19 10:19:34 -04:00
Jason McBrayer b456681de4 Fix crash in privacy page 2018-09-07 18:45:36 -04:00
Jason McBrayer 07932b775b Improve character count in over-length method 2018-09-07 16:43:51 -04:00
Jason McBrayer ccb21b0cdc Fix formatting problem with redrafts and tags
Plus misc. redraft problems
2018-09-06 20:51:18 -04:00
Jason McBrayer 6e087eb45f Make AJAX version of toot deletion work better 2018-09-06 11:45:28 -04:00
Jason McBrayer 8ab83275f6 AJAX-ify the delete link on a toot 2018-09-05 21:29:12 -04:00
Jason F. McBrayer 43d4b6a30d Add long post validation also to reply and redraft 2018-09-05 10:01:00 -04:00
Jason McBrayer 928f0fd7a7 Instead of setting a max_length on posts, catch API error on posting 2018-09-04 19:19:35 -04:00
Jason McBrayer 1dd8b1a316 Hijax block button 2018-09-02 19:52:48 -04:00
Jason McBrayer 3e7c81fc02 Hijax the muting button 2018-09-02 19:47:21 -04:00
Jason F. McBrayer bd663e7539 AJAX the follow button 2018-08-31 15:55:05 -04:00
Jason F. McBrayer 8cdefb5e90 Enhance boost/fav toot with intercooler
Currently, this only works with CSRF protection turned off. Next
job is to fix that.
2018-08-30 16:42:01 -04:00
Jason McBrayer b57d6f68df Fix import that was broken by merge 2018-08-29 10:50:54 -04:00
Jason McBrayer 4e1005c184 Fix previous issues (probably) 2018-08-29 08:46:31 -04:00
Jason McBrayer e913213e77 Fix a 500 error on login 2018-08-29 08:34:05 -04:00
Jason McBrayer 816458a86a Fix a 500 error on repeat login 2018-08-29 08:18:16 -04:00
Jason McBrayer 283b94cd53 Ensure that account username is unique 2018-08-28 13:41:21 -04:00
Jason McBrayer bc9cbd1d6e Fix old_login; something got broken in last merge 2018-08-28 12:48:52 -04:00
Jason McBrayer 5bdb2de646 Add theme support and move preferences into the database
Squashed commit of the following:

commit be4e1ab286f54caa6f44367d2de3cf9e6cb69e68
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Aug 28 12:03:17 2018 -0400

    Set timezone in session as early as possible

commit f1c03349c40ca1aca7f77c32333ee83585495626
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Aug 28 10:06:18 2018 -0400

    Don't hide all .is-hidden in brutalist themes

commit f35a6c5600b091fe0ec4ad78eb5f1a02a4945a65
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Aug 28 09:44:10 2018 -0400

    Rename vt240don.css to vt240don-amber.css

commit 074478937af309d10ff2d7f8f482dbff20ac7cf9
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Aug 28 09:41:43 2018 -0400

    Tweak vt240 amber theme and add vt240 green theme

commit b205cfe7376d067799863d7db1ce3c4530b0ba74
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Aug 28 08:39:11 2018 -0400

    Remove caching of Mastodon connections

    There's not a good way of invalidating them, and they've started causing
    timeouts in this branch.

commit c24a697a39173ff23391220fabad0dc6605cb5ef
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 14:46:21 2018 -0400

    Make minimal-large a little less bare

commit 6fee850cf6ba1edb573a7fedf43af3a343410c9b
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 14:24:57 2018 -0400

    Add minimal-large theme

commit b345dedbfcf55c3142d07a6f5320c677cfb534f0
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 13:19:51 2018 -0400

    Add vt240don style by @enkiv2

commit f013ff235663ee21f2d0962a019ce7bc3c80f7b0
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 09:15:51 2018 -0400

    Fix crash in search

commit 76c4134e9ddebbdf8a8dccab79361e71438877e6
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:35:02 2018 -0400

    Fix crash in oauth_callback

commit d725018d6a34544ac8c92deac27502c457d4d3c8
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:31:19 2018 -0400

    Fix crash in oauth_callback

commit 830264359dbdbf7c34e1d1ae715cb68016cd47f4
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:28:17 2018 -0400

    Fix crash in oauth_callback

commit 2a525298995d108a290484786a7493bfb99af2c8
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:27:03 2018 -0400

    Fix crash in oauth_callback

commit d43eb63146eb21a283290287b9db4d518f36435e
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:25:27 2018 -0400

    Fix crash in oauth_callback

commit ae9a58a0ae010fdc12a7498d691b7b8f8da95e03
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:12:19 2018 -0400

    Fix up default values for default themes again

commit a8fde1710b4d23f2bdd0ced4eeffd44b4e80b756
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:11:18 2018 -0400

    Fixes for dark theme

commit c4a7501cf263afbdc6bf65623e9c8dc5f03f40f7
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Aug 27 08:11:04 2018 -0400

    Small fix in full toot view

commit 69caeea0010e7d59106fba780744592ed9145f61
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 22:50:53 2018 -0400

    Fix up settings display, navbar, typo in links

commit 0e24a394eabe78d8cba864beaedb03a42f916a20
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 22:36:58 2018 -0400

    Fix default theme paths

commit aca5c53561cd8647d42244fd51720e146fddbf94
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 22:35:33 2018 -0400

    More themes prep

commit 6921c55a41db14e155b5ed62c48e3e67d8626b13
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 21:42:53 2018 -0400

    Actually load themes

commit 134952ff17e3a8672e21175395282d91f48f1d2b
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 21:34:06 2018 -0400

    Base and fullbrutalism themes work, but only coincidentally

commit 658aca52955507eda007165e9c44031d417e0076
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 19:47:48 2018 -0400

    Make filtering preference work again

commit 90267055b5a2fc51337b0a3e34b3a5643088e17f
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 19:34:47 2018 -0400

    Fix up settings view, form, and model

commit d58769ecdffad239cc8aa37ebca9c2e87372ebd0
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 19:12:06 2018 -0400

    Fix up old_login to work with new preferences system

commit d8b084a379894a3a40c3eed1c87465f7c77ad7eb
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sun Aug 26 18:11:03 2018 -0400

    Update settings view to use preferences system

commit 49471ae97131bdb0d8152411afdf1987d6c64652
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sat Aug 25 10:53:04 2018 -0400

    Update login logic to match new account models, simplify.

    Not tested yet.

commit 57cce7c0f45fe07dd522a61c9e056db982455843
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Sat Aug 25 10:18:53 2018 -0400

    Fix up models and forms to meet current needs

commit 0634c038ee9220164662d1e933a2f1c83e5af70d
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Fri Aug 24 22:42:07 2018 -0400

    Update fields in models for settings branch

commit 510509e28254cb3ee38b70538d1c0b788448d624
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Fri Jun 22 08:39:42 2018 -0400

    Update settings view a bit; still in progress

commit 5a91a57ceb1d737ed371bd6800ddf6ea0a917a8f
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Jun 19 06:27:19 2018 -0400

    Add forms object for new preferences

commit af4883c172d2b66d83c55b00cee1490fa88ddd4f
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Jun 19 06:26:35 2018 -0400

    Make sure newly created accounts have preferences attached

commit f0ae97b2bf8735bd5c369f273fb51d74deb05450
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Jun 18 21:33:41 2018 -0400

    Setup for themes and related options
2018-08-28 12:22:20 -04:00
Jason McBrayer db1ed32490 Parentheses matter. 2018-08-27 11:12:21 -04:00
Jason McBrayer b9f39ce269 Hopefully fix last piece of oauth login errors for Pleroma 2018-08-27 11:08:55 -04:00
Jason McBrayer 73f8ded761 Also only ask for specific scopes on login, not just client creation 2018-08-27 10:53:35 -04:00
Jason McBrayer a3db39988d Fix syntax error added by last patch 2018-08-27 10:46:53 -04:00
Jason McBrayer b19b4fc641 Explicitly don't request 'push' scope 2018-08-27 10:41:55 -04:00
Jason McBrayer d2c8de991b Make redraft handle html in content, media descriptions.
You still have to re-upload media, which sucks.
2018-08-24 08:38:42 -04:00
Jason McBrayer 9797b6f7c2 Add basic re-drafting without image support 2018-08-23 20:58:07 -04:00
Jason McBrayer fb6e1d6b7a Remove un-needed login check in get_mastodon() 2018-08-23 17:49:45 -04:00
Jason McBrayer 56114c251f Fix crash of privacy page for logged out user 2018-08-22 09:27:45 -04:00
Jason McBrayer fb2f9bc8a3 Fix crash of privacy page for logged out user 2018-08-22 09:25:57 -04:00
Jason McBrayer 7482617863 Improve handling of not-logged-in users 2018-08-22 09:21:09 -04:00
Jason McBrayer a07b6db3d3 Missed adding a mastodon to the pool 2018-08-21 22:11:27 -04:00
Jason McBrayer 81a705cba9 Refactor fullbrutalism_p 2018-08-21 22:01:34 -04:00
Jason McBrayer b851462b12 Add timezone handling to settings and middleware 2018-08-21 13:15:10 -04:00
Jason McBrayer 66861e7abd Add options to filter replies and boosts out of timelines 2018-08-17 14:50:37 -04:00
Jason McBrayer 03c4353476 Sort the emoji guide 2018-08-16 21:19:03 -04:00
Jason McBrayer 7ea5ecca89 Update version string, and move it into the config file 2018-08-16 13:10:45 -04:00
Jason McBrayer efcaa76130 Also catch AttributeError some places IndexError is caught
This should fix bug #36, user searches failing for some users (as far as I
know, for new users with less than one page of history).
2018-08-16 12:59:16 -04:00
Jason McBrayer 13f77c9cf8 Fix over-hasty push 2018-08-09 20:58:05 -04:00
Jason McBrayer 8389ffdf9d view for emoji reference 2018-08-09 19:39:23 -04:00
Jason McBrayer 3d21ed212e Go back to default scopes ask.
May need to drop and re-create database when doing this
2018-08-02 20:40:53 -04:00