Jason McBrayer
8fa5da1409
Do a better job of validating post length
...
This still doesn't correctly handle the shorter "effective lengths" for handles
and URLs. And it doesn't handle different per-server toot lengths. But it does
catch posts that become too long because the length of the CW is counted as part
of the length of the post body, and gives a validation error rather than
throwing an exception.
2018-08-02 11:13:50 -04:00
Jason McBrayer
c729956fab
Fix swapped paging args
2018-07-23 13:37:24 -04:00
Jason McBrayer
e86857f2cb
Actually use paging args in user timeline
2018-07-23 13:35:38 -04:00
Jason McBrayer
e794876d14
Fix two places switch from own_username to own_acct was missed
2018-07-23 13:21:30 -04:00
Jason McBrayer
5bd62b6c4d
Update fullbrutalism mode styles to help with user-indicator feature
2018-07-20 14:08:33 -04:00
Jason McBrayer
0b69a12615
Fix permissions on oauth login.
...
Why is it not the same as password login?
2018-07-18 14:56:52 -04:00
Jason McBrayer
c682bdd117
Missing paren in toot page title
2018-07-18 13:48:33 -04:00
Jason McBrayer
b974cb1ccc
Use your avatar for the favicon: tell multiple accounts apart in tabs
2018-07-18 13:45:04 -04:00
Jason McBrayer
3fd36fa640
Add username to title of pages
2018-07-18 13:40:42 -04:00
Jason McBrayer
6b3b46dff0
Add user icon to various pages to identify which account you're using
2018-07-18 13:33:16 -04:00
Jason McBrayer
2e7ffff2b1
Add missing params in url in user.html
2018-06-24 17:22:41 -04:00
Jason McBrayer
2bdfdeebca
Add missing params to user view
2018-06-24 17:19:39 -04:00
Jason McBrayer
66c351f9e3
Fix paths for user paging
2018-06-24 17:16:28 -04:00
Jason McBrayer
dfd1db618d
Fix typo on user paging
2018-06-24 17:13:31 -04:00
Jason McBrayer
bdb6dc16fd
Add paging for user pages
2018-06-24 17:07:43 -04:00
Jason McBrayer
025a6f736d
Fix presence of newer link when no new notifications
2018-06-24 15:09:09 -04:00
Jason McBrayer
f64f4f92cf
Pass correct variables to notifications template
2018-06-24 14:33:44 -04:00
Jason McBrayer
894d4ae5fe
Push notifications template change
2018-06-24 14:26:07 -04:00
Jason McBrayer
52e83814b6
Add paging to notifications. Untested
2018-06-24 14:19:35 -04:00
Jason McBrayer
320164a5d3
Don't add blank line to replies with no mentions (self-replies)
2018-06-22 08:40:46 -04:00
Jason McBrayer
b72c49e693
Added styling for textarea in fullbrutalism, to fix mobile issue
2018-06-22 07:53:25 -04:00
Jason McBrayer
f2b7670f49
Fix a styling rule in fullbrutalism
2018-06-14 08:28:54 -04:00
Jason McBrayer
457642a62d
Remove some css changes that were supposed to be local-only
2018-06-14 07:32:58 -04:00
Jason McBrayer
67d2d809e8
Add a little more space again to toots in fullbrutalism
2018-06-13 13:45:48 -04:00
Jason McBrayer
2ce118080d
Work harder to not mention yourself.
2018-06-13 13:42:40 -04:00
Jason McBrayer
283996396c
More fullbrutalism css fixes
...
Remember that brutalism isn't the absence of design! It's design that makes
function visible and eschews non-functional finish.
2018-06-13 13:35:21 -04:00
Jason McBrayer
24beec9237
Fix image preview overflow when bosting/faving in fullbrutalism
2018-06-13 13:22:58 -04:00
Jason McBrayer
e8b90de6f8
Change <i> to <span> for iconified text inside links.
2018-06-13 13:10:27 -04:00
Jason McBrayer
a31184face
Form CSS fixes for fullbrutalism
2018-06-13 13:08:09 -04:00
Jason McBrayer
64e2524fd5
Merge branch 'nipos-patch-1'
2018-06-13 12:45:39 -04:00
Niklas Poslovski
9c3bf20bca
Fixed something for FULLBRUTALISM mode
...
In the more beautiful mode Brutaldon shows by icon color if an post is already boosted or favourited.
In the Fullbrutalism there is now way to see if I already boosted or favourited an post.
With my changes Brutaldon can show the words "favorited" and "boosted" in Fullbrutalism mode.
2018-06-13 18:35:23 +02:00
Jason McBrayer
7420755110
Serve assets locally
2018-06-13 10:17:15 -04:00
Jason McBrayer
b6d2d38e7c
Added some css to fullbrutalism.css
...
Brutalist or not, stuff overflowing boxes is not a good look.
2018-06-12 12:43:13 -04:00
Jason McBrayer
d90d7cc648
Add some banners to fullbrutalism footer
2018-06-12 12:25:37 -04:00
Jason McBrayer
eae810c15c
In js-supporting browsers, use ctrl-enter to submit toots
...
This pulls in our first external javascript dependency! And thus a yarn.lock.
2018-06-12 08:35:23 -04:00
Jason McBrayer
ccb5b52234
user page layout
2018-06-11 20:02:46 -04:00
Jason McBrayer
4d31412e75
Add blocking and muting
2018-06-11 19:38:49 -04:00
Jason McBrayer
d0bed792b2
Add mention to user actions
2018-06-11 19:19:22 -04:00
Jason McBrayer
9122a44216
Implement follow/unfollow
2018-06-11 19:09:12 -04:00
Jason McBrayer
51f26e2b25
Template changes for user actions
2018-06-11 18:16:32 -04:00
Jason McBrayer
6952c34aac
User action icons
2018-06-11 14:45:04 -04:00
Jason McBrayer
b719cce139
URL routes and stub view functions
2018-06-11 14:34:38 -04:00
Jason McBrayer
0ccd1e60e8
Fix up formatting
2018-06-11 14:25:13 -04:00
Jason McBrayer
315d875f9b
Add search box to top of search results page just because.
2018-06-10 12:44:56 -04:00
Jason McBrayer
cffa271394
Fix image style bug introduced in last commit
2018-06-09 14:02:53 -04:00
Jason McBrayer
cce0fe0186
Complete searching feature for brutaldon
2018-06-09 13:49:04 -04:00
Jason McBrayer
5e2b025042
A bit more on search templates
2018-06-08 19:03:02 -04:00
Jason McBrayer
f2c8036bc0
Fix tag timeline titles
2018-06-08 19:02:46 -04:00
Jason McBrayer
89584a01e5
Fixes to notifications template
2018-06-08 19:02:08 -04:00
Jason McBrayer
3390266b29
Work around bug(?) in BeautifulSoup entity handling
2018-06-06 17:13:26 -04:00
Jason McBrayer
dc5d5f4176
Remove a bit of debug logging
2018-06-06 15:25:10 -04:00
Jason McBrayer
5bdd29f12e
Merge branch 'master' of github.com:jfmcbrayer/brutaldon
2018-06-06 15:23:19 -04:00
Jason McBrayer
d0770dbbe1
Fix unescaping of html in template filters.
...
This was not a security bug, because it was done before passing code to
sanitize, but it was totally an annoying UI bug.
2018-06-06 15:21:00 -04:00
Jason McBrayer
d2de96fceb
Views and routes for search
2018-06-05 18:36:44 -04:00
Jason McBrayer
e05601db22
Add extra debug logging to production
2018-06-05 08:24:07 -04:00
Jason McBrayer
e63d6b86f5
Add connection pooling for Mastodon objects
...
brutaldon has really bad latency. Some part of it is reconnecting to the
mastodon server every request, even with a cached auth token. This commit
adds a singleton object that caches mastodon.Mastodon objects.
2018-06-05 08:08:12 -04:00
Jason McBrayer
9e04cf13ff
Remove paging placeholder from user timeline
2018-06-04 10:11:14 -04:00
Jason McBrayer
aa763cc1d0
Don't include self-mention when replying on a thread you're in.
2018-06-04 09:09:34 -04:00
Jason McBrayer
dd8eb95a42
More padding for media
2018-06-03 16:47:46 -04:00
Jason McBrayer
687de7e571
Add padding in fullbrutalism
2018-06-03 15:48:48 -04:00
Jason McBrayer
1bfeb80646
Add source link to footer
2018-06-01 18:46:44 -04:00
Jason McBrayer
2869d0a41f
Leave the footer on in FULLBRUTALISM mode
2018-06-01 18:42:52 -04:00
Jason McBrayer
e1c77dd483
Direct people to the about page if not logged in.
2018-06-01 09:22:17 -04:00
Jason McBrayer
097dd694fb
Fix summary/details arrow styling in FULLBRUTALISM mode
2018-05-31 18:47:11 -04:00
Jason McBrayer
351c0ea2e2
Return max image preview dimension to 128px
2018-05-30 12:53:22 -04:00
Jason McBrayer
6c855dbaae
Make image previews keep aspect ratio of original, and larger max size.
2018-05-30 12:44:53 -04:00
Jason McBrayer
3d95a65f53
Fill in about and privacy pages
2018-05-27 13:43:20 -04:00
Jason McBrayer
4fa527a4d8
Fix 'boost' note on fav notifications
2018-05-26 13:49:04 -04:00
Jason McBrayer
507c52bb96
Add about and privacy pages
2018-05-26 13:28:13 -04:00
Jason McBrayer
722a5c73fd
Remove more boxes.
2018-05-23 14:31:35 -04:00
Jason McBrayer
e9097a950d
Fix one more place where I didn't update templates
2018-05-23 14:04:51 -04:00
Jason McBrayer
b0a2657296
Link brand to home (useful on mobile)
2018-05-23 10:07:15 -04:00
Jason McBrayer
9ee6e3f5f7
Fix formatting of replies
2018-05-23 10:05:13 -04:00
Jason McBrayer
7e449992f4
Fix issue of mobile without javascript not having a menu
2018-05-23 09:52:15 -04:00
Jason McBrayer
ff2754e33b
Convert the navbar menu into a dropdown on mobile
...
This *may* break browsers that support css media types but not javascript.
This set appears to include dillo, evergreen browsers with js turned off.
One thought on how to fix this is to set is-active on the menu by default,
don't include the burger. Add the burger from javascript and remove is-active
from the menu.
2018-05-23 09:18:23 -04:00
Jason McBrayer
1ad74ffcef
Fix class name typo
2018-05-23 09:03:15 -04:00
Jason McBrayer
e566512a98
Fix things that got broken by mobile fixes
2018-05-23 08:56:34 -04:00
Jason McBrayer
c2fe241281
Adjust fullbrutalism mode for media fix changes
2018-05-23 08:40:11 -04:00
Jason McBrayer
69a678a5ce
Fix a bunch of mobile formatting issues
2018-05-23 08:27:45 -04:00
Jason McBrayer
9e1a82655e
Put spoilers in details/summary element.
...
This gives us expandable CWs without JS. On Lynx, nothing actually changes.
2018-05-22 14:53:14 -04:00
Jason McBrayer
2895bae6bc
Allow deleting your own toots
2018-05-22 09:41:11 -04:00
Jason McBrayer
ac02b941c0
Fix bug with posting media on replies
2018-05-22 09:05:16 -04:00
Jason McBrayer
02f0ee560a
Mini-post form and default post privacy
2018-05-22 08:57:45 -04:00
Jason McBrayer
7af72887e9
Change rate limit method from pace to throw
...
This will help with debugging.
2018-05-22 08:12:39 -04:00
Jason McBrayer
50a44d1a43
Don't show actions bar when you're only showing a toot for confirmation
2018-05-22 08:12:21 -04:00
Jason McBrayer
bfa9e8e86b
Add user's acct to session on login
2018-05-20 20:28:53 -04:00
Jason McBrayer
dc82c5e9fd
Remove stray bracket from home timeline
2018-05-18 09:28:00 -04:00
Jason McBrayer
dd88bcea29
Home, local, and public timelines have simple pagination.
...
Notification and tag timelines should also have pagination, but they have
to be done separately.
2018-05-18 09:22:27 -04:00
Jason McBrayer
ad334315dc
Support multi-image posting.
...
The javascript could be refactored a little cleaner, I think.
2018-05-18 08:00:12 -04:00
Jason McBrayer
22dde23e81
Fix link backgrounds in FULLBRUTALISM mode
2018-05-15 10:08:27 -04:00
Jason McBrayer
741304ee8c
Be sure not to include inline scripts in FULLBRUTALISM mode
2018-05-15 10:06:09 -04:00
Jason McBrayer
b465dc9870
Very basic support for sensitive images
2018-05-15 10:04:09 -04:00
Jason McBrayer
17769e952c
Allow old login method with suitable warning.
2018-05-15 09:52:07 -04:00
Jason McBrayer
f4ef673ab7
Missing file from last commit
2018-05-14 16:05:02 -04:00
Jason McBrayer
f40cc58852
Switch authentication over to OAuth.
...
Going to add fallback for running locally.
2018-05-14 15:35:10 -04:00
Jason McBrayer
df085c5956
Don't show boost button for toots that can't be boosted.
2018-05-13 20:19:34 -04:00
Jason McBrayer
d5e224a063
Temporarily remove pagination dummy links
2018-05-13 13:18:56 -04:00
Jason McBrayer
2d9e06ac8f
Fix crash on validation error in replies
2018-05-13 13:16:44 -04:00
Jason McBrayer
c6e0c7d9c1
Fix up static links in base template
2018-05-13 12:18:09 -04:00
Jason McBrayer
ea5f0244af
Pretty up the file upload
2018-05-10 07:27:45 -04:00