Commit Graph

170 Commits

Author SHA1 Message Date
Jason McBrayer 0c3d4f8405 Fix permission issues after removing an account and refactor 2019-04-27 20:32:09 -04:00
Jason McBrayer 5612965b45 Forgetting the last account works 2019-04-27 20:28:03 -04:00
Jason McBrayer 59f2a9cf1e Forgetting a logged-in account now works 2019-04-27 20:22:27 -04:00
Jason McBrayer f11e816426 Revert an over-aggressive refactor 2019-04-24 09:41:45 -04:00
Jason McBrayer 1c13a9a04b Return a response in worst old_login case 2019-04-24 09:20:49 -04:00
Jason McBrayer f2abaaa885 Correct last commit 2019-04-24 09:18:51 -04:00
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