Commit Graph

532 Commits

Author SHA1 Message Date
Andrew Godwin 44dc7a2ce4 Remove extra newlines in post content
Fixes #282
2022-12-27 11:53:44 -07:00
Kromonos b170cd2850
Add docker healthcheck feature & move collectstatic into container (#276) 2022-12-27 11:39:18 -07:00
Corry Haines b7b0b0dad4
Add cache-control header for static assets (#281) 2022-12-27 11:25:18 -07:00
Andrew Godwin 07b28c7264 Realign content with banner 2022-12-27 10:55:16 -07:00
Andrew Godwin 218aabc597 Stop no-store headers getting through for the proxy 2022-12-26 20:53:50 -07:00
Andrew Godwin 201b410383 Improve domains docs 2022-12-26 20:27:23 -07:00
Corry Haines b36fa0de51
Disable opengraph block in base_plain.html (#279)
Since error pages lack the normal context, remove the block so
it doesn't obscure errors with spew.
2022-12-26 15:29:52 -07:00
Andrew Godwin a815622190 Reinforce service domain uniqueness 2022-12-26 15:29:09 -07:00
Andrew Godwin 5ac2c26eec Fix view profile buttons 2022-12-26 15:25:54 -07:00
Andrew Godwin f7baea2756 Fix identity template with new banner 2022-12-26 10:53:46 -07:00
Corry Haines 31187c99b2
Quality of life (#266)
Support gunicorn autoreload on DEBUG
Pass docker postgres port to host
Add some typing to posts.py
2022-12-26 10:42:02 -07:00
Corry Haines a590427160
Render the Nginx config to a separate file (#273)
When writing the cache size to nginx config, write it to a
separate file so it doesn't confuse git status/commit.

By using a rendered file, we can ignore the output completely.
2022-12-26 10:40:37 -07:00
Corry Haines b53504fe64
Basic OpenGraph support (#267)
Creates an OpenGraph template include in base.html including the basic tags expected on all pages.

Then allows any page to add additional expected tags via `context`.

Currently, profiles and posts are enriched to show complete opengraph metadata, and render correctly in Discord.

Note: This does not show posts in Slack like Twitter/Mastodon do. I believe this is due to Slack preferring oembed when present, which is a mastodon API endpoint we may need to create at some point.
2022-12-26 10:39:33 -07:00
Tyler Kennedy dab8dd59a7
Fallback avatars in about 500 bytes. (#269)
Also create a new re-usable identity banner template. Fix super long handles (closes #270)
2022-12-26 10:14:23 -07:00
Andrew Godwin d32a686eb1 Persist CWs in replies, expand linked at once
Fixes #268
2022-12-26 10:03:13 -07:00
Andrew Godwin c9f7a06fe5 Fix notes on invites showing in list view 2022-12-26 09:43:00 -07:00
Michael Manfre 50c07f491e
Guard Post mentions processing from unfetched Identities (#272) 2022-12-25 14:37:31 -07:00
Michael Manfre d2766860c5
Views that return fixed content only generate the content once (#271) 2022-12-25 14:26:15 -07:00
Michael Manfre 8ab0e97a86
Some servers send object as dict for PostInteraction and Follow (#261)
* Some servers send object as dict for PostInteraction and Follow

* Add core.ld.get_str_or_id helper
2022-12-24 21:24:46 -07:00
Michael Manfre ab398758a9
Fixed mention linking with mixed case usernames (#265) 2022-12-24 21:04:25 -07:00
Andrew Godwin da00a67cb5 Don't double escape summary 2022-12-24 12:49:59 -07:00
Andrew Godwin 365b9d49c6 Don't error when we don't have a parent post 2022-12-24 12:28:10 -07:00
Michael Manfre 834282cf54
Remove unused Post.linkify_mentions() (#263) 2022-12-24 15:01:16 -07:00
Andrew Godwin e2ae2b2948 Releasing 0.6.0 2022-12-24 11:27:45 -07:00
Michael Manfre a3764df6d6
Prettier debug json (#260) 2022-12-24 11:09:53 -07:00
Michael Manfre 5536397bdb
Prettier debug json (#260) 2022-12-24 11:05:07 -07:00
Andrew Godwin 4339b09dd4 Also catch empty host-meta 2022-12-24 10:56:49 -07:00
Andrew Godwin a7bbbb5663 Also catch host-meta parse errors 2022-12-24 10:56:22 -07:00
Andrew Godwin 96e95da73f More 0.6 release prep 2022-12-24 10:50:24 -07:00
Andrew Godwin 087cb2a15f Rework post/event querysets to always fetch stuff 2022-12-24 10:50:01 -07:00
Andrew Godwin a6c973337c Make load more button not do a refresh 2022-12-24 10:27:48 -07:00
Tyler Kennedy 801c807a2b
Simple user stylesheet support. (#258) 2022-12-24 07:28:39 -07:00
Andrew Godwin cda7467802 Make debug JSON page better 2022-12-24 06:56:33 -07:00
Tyler Kennedy 2889d0f60a
Cap the maximum height of gallery images to 400px. Set object fit to center the image and then crop so they don't get distorted by aspect ratio changes. (#254) 2022-12-24 06:34:33 -07:00
Michael Manfre c25da3a95f
Better djadmin Identity search (#253) 2022-12-24 06:34:15 -07:00
Andrew Godwin f5d06d2656 Move wellness options inside Interface 2022-12-23 23:01:27 -07:00
Andrew Godwin 3187d4d180 Fix reaction counts hiding 2022-12-23 22:56:59 -07:00
Tyler Kennedy b5be9b576d
Ux gallery tweaks (#252)
Tweaks to attachment CSS to show a better looking gallery view, video support
2022-12-23 22:54:03 -07:00
Andrew Godwin ff32b521ae More small screen fixes 2022-12-23 22:52:20 -07:00
Andrew Godwin 2a79f34f8a Small screen and identity select styling
Fixes #236
2022-12-23 22:46:27 -07:00
Andrew Godwin 6be1e7df44 Make oauth screens plain as well 2022-12-23 22:34:33 -07:00
Michael Manfre d88db5efbf
BunnyCDN doesn't return content-type (#251) 2022-12-23 22:17:43 -07:00
Michael Manfre aca77314d1
Fixes #239 - Add option to hide Boost and Like counts (#247) 2022-12-23 22:16:26 -07:00
Michael Manfre 9fb18ac841
Identity background images can be relative (#250) 2022-12-23 21:57:50 -07:00
Andrew Godwin 043a41afd3 Allow turning debug toolbar on separately 2022-12-23 01:59:31 -07:00
Tyler Kennedy 5dcdee237c
Handle host-meta, which is required for webfinger, not optional. (#220) 2022-12-23 21:35:17 -07:00
Andrew Godwin 294095c592 Don't allow trailing period in mention
Fixes #249
2022-12-23 01:47:00 -07:00
Michael Manfre c969ffc0d6
Ensure OAuth views are provided expected inputs (#246)
Thanks for the report Jochen!
2022-12-23 21:17:13 -07:00
Andrew Godwin fd87a7cf08 More 0.6 notes 2022-12-23 00:48:15 -07:00
Andrew Godwin 699b6fc29e "Remove posts from front page" option 2022-12-22 14:16:08 -07:00