639 Commits

Author SHA1 Message Date
Jason McBrayer
39118b985d Support Django 5.0
Django 5.0 dropped support for serializing sessions with
PickleSerializer. brutaldon depended on this because the default JSON
serializer does not support datetime objects. This commit adds a
simple wrapper using the datetime and decimal handler in
django.core.serializers.DjangoJSONEncoder.

Brutaldon also saved user information in the session. Mastodon.py
returns API data as dictionaries wrapped by a class that adds
read-only attributes for every key, to allow dotted access, and
brutaldon saved some of these directly to the session. A trip through
the JSONSerializer turns them back into normal dictionaries. For
compatibility, this commit pulls in the python-box package as
a dependency to restore dotted access as used in views.py.
2024-12-01 21:00:50 -05:00
Rodrigo Arias Mallo
8cf6be956e Add Minimalist Dillo theme
Provides a simple theme that is compatible with the Dillo browser
2024-11-02 13:08:57 -04:00
Jason McBrayer
59b149eede Fix mentions regex, add tags fixup 2024-10-16 17:47:09 -04:00
Jason McBrayer
d80e049bb0 Fix broken whitespace in redraft
This still doesn't, for example, reconstruct the markdown the author
may have used to format their post.
2024-10-16 17:12:52 -04:00
Jason McBrayer
eb18df9d64 newspaper.css: use flexbox for nav menu.
Goal is for this to be better on mobile than it was.
2024-04-19 16:50:16 -04:00
Jason McBrayer
4434b5d3e8 Webmanifest improvements.
More to come. I want to eventually register a share target.
2024-04-02 16:18:58 -04:00
Jason McBrayer
223f3149cd Move utility functions out of views.py 2024-03-28 16:53:12 -04:00
Jason McBrayer
0c5f79c3f6 Remove unused imports 2024-03-28 16:31:23 -04:00
Jason McBrayer
789ac6d97f Fixups to newspaper theme for mobile 2024-03-28 16:14:36 -04:00
Jason McBrayer
877ffc0741 Tune SQLite settings for using SQLite in production for small sites
See: https://fractaledmind.github.io/2023/09/07/enhancing-rails-sqlite-fine-tuning/
2024-03-27 10:15:32 -04:00
Jason McBrayer
ca5f2da34a Add newspaper theme 2024-02-22 08:58:38 -05:00
Jason McBrayer
9bcf350c8c Resize videos in HTML like we do images now.
This is probably *fairly* useless, since no browsers as far as I know
support the video tag, but not CSS. But it could make a basic CSS
theme a few lines shorter.
2023-11-16 18:49:40 -05:00
Jason McBrayer
12bb559bac Don't load magnific popup css if lightbox is disabled. 2023-11-16 18:49:02 -05:00
Jason McBrayer
316a3ee488 Also fix size of images in cards for non-css 2023-11-13 12:25:09 -05:00
Jason McBrayer
9e4020ed73 Pin bleach to 4.1, but without other changes.
It is not great that we have to do this; hopefully we can replace the
html cleaning with something that doesn't have an unmaintained dependency.
2023-10-29 18:14:42 -04:00
Jason McBrayer
75cda64929 Revert "pin bleach dep to 4.1, disable mastodon version checks"
This reverts commit fdfb7bb93eab14df28465271caae835f2d100206.
2023-10-29 18:14:24 -04:00
Jason McBrayer
9afe69316e Allow height and width in attribute filtering
Needed so the fix_emojos filter can add the width and height
2023-10-29 14:34:45 -04:00
Jason McBrayer
a45dbc13a0 Template changes to better support non-CSS graphical browsers
Currently, I'm testing this in Dillo, but I want to have it working in
Netscape 3 on Mac System 7.
2023-10-29 13:55:21 -04:00
Jason McBrayer
81a7356988 Support and prefer Django 4.1.x.
Backwards compatibility for 3.2 LTS is provided for now, but you'll
have to change the pipfile if you insist on it.
2023-10-29 13:08:47 -04:00
Jason McBrayer
5034f706f8 Fullbrutalism font size tweak 2023-10-29 11:19:43 -04:00
Jason McBrayer
cc63a6f0d8 Remove uses of loading-attribute-polyfill
Remains to be seen if we still need to remove/conditionally add load=lazy
2023-10-04 13:35:19 -04:00
Jason McBrayer
b8ea84ade4 Copy updated js packages to static 2023-10-04 13:16:12 -04:00
Jason McBrayer
a3bf08bc96 Update timezone selections 2023-06-24 21:59:44 -04:00
9768c08466 Merge branch 'fix/support-gts' into 'main'
pin bleach dep to 4.1, disable mastodon version checks

See merge request brutaldon/brutaldon!11
2023-02-03 17:28:45 +00:00
David Quick
fdfb7bb93e pin bleach dep to 4.1, disable mastodon version checks 2023-02-03 12:15:54 -05:00
b9e064967c Merge branch 'main' into 'main'
require Django 3.x for compatibility

See merge request brutaldon/brutaldon!7
2022-11-14 14:53:02 +00:00
franklint
397306a8d9 require Django 3.x for compatibility 2022-11-12 19:04:30 +00:00
8b147bbc16 Merge branch 'fix-default-field-warning' into 'main'
Deploy CI Pipeline for tests

Closes #19

See merge request brutaldon/brutaldon!6
2021-08-03 15:20:35 +00:00
19b4e56007 Merge branch 'show-local-only' into 'main'
Added local-only toot display support

Closes #21

See merge request brutaldon/brutaldon!5
2021-08-03 15:19:14 +00:00
Zachery Bohon
2131b9da3f Add .gitlab-ci.yml 2021-08-03 04:45:35 +00:00
Zac Bohon
badd8922fb Added DEFAULT_AUTO_FIELD to settings.py
Resolves warnings thrown by PyTest.

see https://dev.to/weplayinternet/upgrading-to-django-3-2-and-fixing-defaultautofield-warnings-518n
2021-08-02 23:41:36 -05:00
Zac Bohon
cdc199532d Added local-only toot display support
If the API returns a toot with the local_only property set to true:
Adds a "(local only)" text to the visibility.
Tested to work on Glitch-Soc and Hometown, and not break on Vanilla
2021-08-02 16:50:38 -05:00
6d7d8d936a Merge branch 'add-rel-attribute' into 'main'
Added rel attributes to the next and prev links

Closes #4

See merge request brutaldon/brutaldon!4
2021-08-01 20:39:25 +00:00
Zac Bohon
06d306ce2b Added rel attributes to the next and prev links 2021-08-01 15:37:06 -05:00
13761e6125 Merge branch 'fix-source-link' into 'main'
fix the html templates to point to gitlab repo

See merge request brutaldon/brutaldon!3
2021-08-01 20:19:49 +00:00
Zac Bohon
287e2fc19c Change the html templates to point to gitlab repo 2021-08-01 15:14:29 -05:00
Zac Bohon
9981d0ff38 Added email address to CoC 2021-08-01 11:00:27 -05:00
5f97d9fccd Merge branch 'contributing-doc' into 'main'
Add CONTRIBUTING.md

Closes #2

See merge request brutaldon/brutaldon!2
2021-08-01 14:41:37 +00:00
38904d4628 Merge branch 'code-of-conduct' into 'main'
Added CODE_OF_CONDUCT.md

Closes #1

See merge request brutaldon/brutaldon!1
2021-08-01 14:39:12 +00:00
Zachery Bohon
11df272d5d Add CONTRIBUTING.md 2021-08-01 06:50:28 +00:00
Zachery Bohon
0b51f6b390 Added CODE_OF_CONDUCT.md 2021-08-01 06:35:08 +00:00
ba0d0f2df0 Update README.md to refer to new primary repo and remove former maintainer's tip jar 2021-08-01 00:56:41 +00:00
Jason McBrayer
e6c5273a2f Bump version number for pleroma features 2020-07-08 13:26:11 -04:00
Jason McBrayer
012c0b74c1 Update intercooler.js v2.15.0 2020-07-08 13:24:00 -04:00
Jason McBrayer
adc65f8d5a Upgrade jquery and remove zepto 2020-07-08 13:23:04 -04:00
Jason McBrayer
d43d9cf6a6 Ignore yarn.lock 2020-07-08 13:21:34 -04:00
Jason McBrayer
fd5e4874c8 Fix errors introduced in same_user, apply standard formatting 2020-07-08 12:58:38 -04:00
GCU Prosthetic Conscience
b1a2c7f57d
Merge pull request #76 from cyisfor/handle_feature_set_errors
Handle feature set errors from Pleroma
2020-07-08 12:37:02 -04:00
GCU Prosthetic Conscience
8c5c48fd19
Merge pull request #79 from cyisfor/pleroma_account_search_workaround
Pleroma account search workaround
2020-07-08 12:16:27 -04:00
GCU Prosthetic Conscience
ab5b734dbb
Merge pull request #77 from cyisfor/catch_session_expiration_error
Mastodon.py raises an error when session is expired
2020-07-01 08:37:40 -04:00