Commit Graph

595 Commits

Author SHA1 Message Date
autocommit 77e352b820
Preference setting for whether to make threads a tree or not
I guess it might be useful for mobile users?
2020-06-01 18:51:00 +00:00
Cy aee3b13496
Merge branch 'dark_textareas' into threaded_threads
There's a merge conflict if I try to separate out this branch...
2020-06-01 18:49:13 +00:00
Cy d682f62118
Merge branch 'open_details_preference' into HEAD 2020-06-01 18:39:09 +00:00
Cy 50f05d724f
Merge branch 'preview_sensitive' into threaded_threads 2020-06-01 18:28:43 +00:00
Cy a0433a1854
Changing the template, prettifying a bit
Now that everything is a <li> can set the margin-top value to make a gap, instead of making a visible "invisible" hr. And with the template thread.html fixed, it seems to be working, showing everything as a tree, instead of a flat list.
2020-06-01 08:35:34 +00:00
Cy b306f38520 The template prints out the root by itself
Right, the template is where the duplication of the root is, since now the root is just the first "descendant" in the tree.
2020-06-01 03:46:16 +00:00
Cy f900be02f3 Why is the root post displaying twice?
I thought the root post only displayed once. Maybe it needs to be removed?
2020-06-01 03:45:19 +00:00
Cy 2cf2e777d4 The root post is not included in its descendants
Oh for Pete's sake I'm an idiot. The descendants array isn't going to contain the root post at all, because it's totally separate. That's the missing post everything was trying to reply to!
2020-06-01 03:42:15 +00:00
Cy 5187715244 Consistent naming
Right, I forgot I was in the middle of changing the name post to toot. Thus explaining why op.post had an empty result, since op.toot was what I changed.
2020-06-01 03:40:44 +00:00
Cy 8cda9227b9 Pulling any missing posts by ID
We have the post ID, so why would Pleroma not send us the post? Request any missing posts it hasn't sent us, to try and get a thread that doesn't lose all its replies.
2020-06-01 03:39:32 +00:00
Cy 3d96963113 auto 0 20 244 2020-06-01 03:38:27 +00:00
Cy e76c758762 Leftovers isn't lazy enough
1) initialize seen to empty
2) get all posts not in seen
3) add posts to seen because the generator was iterated over lazily
4) wonder why it looks like there weren't any posts in seen

yeah... leftovers has to be lazy too.
2020-06-01 03:36:47 +00:00
Cy 05605bf8ff Leftovers?
Trying to add the leftover toots that don't reply to anything at the end.
2020-06-01 03:35:33 +00:00
Cy e8b5cf6bb4 Removing redundant code
The top level roots acts like any other level, I noticed.
2020-06-01 03:34:35 +00:00
Cy 43cb98a682 Sorting to make it easier to read when debugging 2020-06-01 03:33:43 +00:00
Cy 09c5a4ff7d Yet more debugging
Trying to find how to thread stuff is harder than I thought it would be. Where's the root?
2020-06-01 03:32:53 +00:00
Cy e887978ab3 Maybe the root is getting filtered out?
I can't imagine how, but...#
2020-06-01 03:31:58 +00:00
Cy cc826ff400 Still trying... 2020-06-01 03:30:52 +00:00
Cy 7552f4e627 Monitor tree building progress
Trying to find why only the one post comes out with no replies
2020-06-01 03:29:58 +00:00
Cy 631c1409af Nothing at all?
More debugging...
2020-06-01 03:28:58 +00:00
Cy 933961b112 Trying to figure out why only the root post is coming through
Is nothing in reply to the root post? Nothing at all?
2020-06-01 03:27:22 +00:00
Cy 2308d65ec2 Adding an outer IN/OUT
If we have multiple roots ever, we need the whole thing in a big <ul></ul>
2020-06-01 03:26:26 +00:00
Cy 2c8cdac15e OK no hashable errors anymore
I think I got it working.
2020-06-01 03:25:07 +00:00
Cy 82b2c9f232 Still trying to figure out what my data structure is
Python's dynamic typing doesn't make this easy...
2020-06-01 03:23:47 +00:00
Cy 4faba56cfe Debugging a lookup error
It was saying stuff was unhashable, but I thought I was just hashing by post ID.
2020-06-01 03:22:00 +00:00
Cy 4e948788d7 Cleaning up, adding tokens
Doing some token based temporary flattening for django
2020-06-01 03:18:51 +00:00
Cy 7b86cf726d Viewing threads as a tree, not flattened
I couldn't tell who was replying to whom, so I thought I'd give a shot at implementing a tree of threads, instead of a flattened list, with only the root distinguishable from the rest.
2020-06-01 03:13:32 +00:00
Cy 9415defede
whoops, left an old mistake in the code 2020-05-31 02:22:47 +00:00
Cy c0caab4919
Missed a few status_post calls 2020-05-31 01:04:43 +00:00
Cy 543a83cb81
Add open_details preference
Add a preference to open details by default.
2020-05-31 00:51:15 +00:00
Cy 39f13d64fd
Allow previewing sensitive images
A setting to not censor sensitive images if you think you're not in danger for looking at them.
2020-05-30 23:23:36 +00:00
Cy 0439440f40
Foreign keys add magic members
Because when you add one field to a class, you clearly want to add two fields to a class, and there's no need to consider the field you never asked to add to be something other than a field.
2020-05-30 23:20:16 +00:00
Cy 0b93eb78f4
Refactoring preferences to be more cohesive
No need to list the preference fields three times in three places in the code. A class decorator ought to be able to sleuth them out from the model itself. Should make it easier to add new preferences.
2020-05-30 23:19:49 +00:00
Cy 12d7b4cb7d
Handle feature_set errors automatically
Recreate the mastodon object if there's an error complaining about a missing feature set. Only happens for status_post I think. Could be further generalized...
2020-05-30 23:10:50 +00:00
Cy 2dfdb0b859
Support feature_set= other than mainline for Mastodon
Pleroma will send records that cause brutaldon to make pleroma-specific responses, which the mastodon python module wigs out on claiming it doesn't support that "feature set" so allow for a feature set to be specified...
2020-05-30 23:07:38 +00:00
Cy bf0394ca36
textareas and inputs in bulmaswatch-darkly were hurting my eyes.
(#fff) is not a good background color to compose posts in, that are then displayed with the dark background color.
2020-05-30 21:23:46 +00:00
GCU Prosthetic Conscience 00e35409ef
Merge pull request #66 from garbados/master
Bring Brutaldon mirror up to date

Note the primary repository is https://git.carcosa.net/jmcbray/brutaldon
2020-01-31 13:58:33 -05:00
Diana Thayer aa8585bb24
Merge branch 'master' of github.com:garbados/brutaldon 2020-01-31 03:15:21 +01:00
Jason McBrayer 72c7bbcc3d Bump patch level for bug fixes 2019-11-26 08:51:59 -05:00
Jason McBrayer 31c6d0b5f0 Fix rare crash in notifications 2019-11-26 08:48:50 -05:00
Jason McBrayer ecdaabff33 Fix accessibility issue with expand CW button 2019-11-08 10:38:46 -05:00
Jason McBrayer f6d0cfee61 Fix sorting of bundled notifications 2019-11-08 10:24:10 -05:00
Jason McBrayer 428c1e1508 Make bookmarklet available in footer of every page 2019-11-08 10:06:45 -05:00
Jason McBrayer fb2970af3b Fix a bug in bundling notes 2019-11-08 07:46:22 -05:00
Jason McBrayer 2da4fd0de2 Sharing bookmarklet works 2019-11-07 19:44:09 -05:00
Jason McBrayer da1de5ea32 Add share view 2019-11-07 13:32:51 -05:00
Jason McBrayer c836861027 Fix formatting of migrations 2019-11-07 13:32:41 -05:00
Jason McBrayer eaf0cbd46b Fix emojos in display names in notifications 2019-11-06 12:49:51 -05:00
Jason McBrayer 0604ddffe6 Bump minor version 2019-11-05 19:27:33 -05:00
Jason McBrayer cf13ad3790 Squashed commit of the following:
commit 0a80206abb8fae7785a59aab88043b2b1974756b
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Nov 5 19:22:00 2019 -0500

    Fix oxford comma in bundled notifications, remove unused dependency

commit e96bd22bdce996734aaaf1d5625e08add3c8fcf7
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Nov 5 19:19:42 2019 -0500

    Now template works with bundled or un-bundled notifications

commit 6f46bef7fdd0defe2f02e09e28558de882ce4456
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Nov 5 19:02:51 2019 -0500

    Bundled toots work; now fix unbundled case

commit 07d9de49f943d019d04a5a5203081e57dc0741d8
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Nov 5 14:09:14 2019 -0500

    Notifications are now sorted by groups, but not collapsed

commit f62666929f12cf0c7db4c68a1468f7e138318a5c
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Tue Nov 5 13:58:41 2019 -0500

    Fix saving of bundle_notifications setting

commit 335d5f985c968bb84e4b459dabf77d1d7ecad646
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Nov 4 18:57:54 2019 -0500

    Forgot to include migration for bundle notifications preference

commit 0e8232591c4f1bb972e9694433c546c9f66b5419
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Nov 4 18:57:35 2019 -0500

    Bundle notifications setting front-end

commit 6e945f1ceb2ff19470e164a946a6a48de4142812
Author: Jason McBrayer <jmcbray@carcosa.net>
Date:   Mon Nov 4 18:54:49 2019 -0500

    Backend code to group notifications
2019-11-05 19:23:58 -05:00