Commit Graph

962 Commits

Author SHA1 Message Date
Andrew Godwin 9c3806a175 Refactor link header and fix empty page case 2022-12-29 11:46:25 -07:00
Andrew Godwin ea6f272047 Infinite scroll, and footer in sidebar if exists 2022-12-29 11:33:41 -07:00
Andrew Godwin d3fd365a37 Add boost JSON
(also fix hashtag URLs)
Fixes #313
2022-12-29 10:53:31 -07:00
Corry Haines 165d84abbf
Fixes developed from mypy_django script (#312) 2022-12-29 10:35:14 -07:00
Tyler Kennedy cc7824394b
Fixes for the Toot! client (#248) (#275)
* Various Toot! fixes
* Use a fallback 1x1 pixel image for missing headers, same as Mastodon. The header and header_static are _not_ optional nor nullable according to the spec.
* Try removing some fields which probably shouldn't be set.
* Pagination with next/prev.
2022-12-29 10:31:32 -07:00
Andrew Godwin b03d9f0e12 Handle deletions of post URIs
Fixes #306
2022-12-28 22:47:28 -07:00
Andrew Godwin 716b74404f Allow for follow accepts with object URIs only
Fixes #214
2022-12-28 22:25:34 -07:00
Kromonos d525a2f465
Quick fix for TAKAHE_SECRET_KEY in Dockerfile (#309) 2022-12-28 21:56:11 -07:00
Michael Manfre 6983763786
Fix negated autokey guard logic (#308) 2022-12-28 20:08:52 -07:00
Andrew Godwin a2f0634cb2 Include URI in post error
Fixes #307
2022-12-28 12:06:32 -07:00
Andrew Godwin 6137149f55 Improve cache busting proxy URLs with file exts
Fixes #287.
2022-12-28 11:57:54 -07:00
Corry Haines 296780d5cc
Use cache-busting URLs for proxied files (#294)
Migrates (in a backwards-compatible way) from `/proxy/identity_image/271/` to `/proxy/identity_image/271/f5d8e72f2b/`.
dently).
2022-12-28 11:39:40 -07:00
Andrew Godwin 161b1a8af1 Don't permit autogenerated secret keys in prod
Fixes #300
2022-12-28 11:27:40 -07:00
Michael Manfre 4df4f19856
Remove unneeded join from Post to Identity (#301) 2022-12-28 11:14:41 -07:00
Andrew Godwin e38e985e73 Fall post URLs back to their ID
Fixes #302
2022-12-28 11:12:40 -07:00
Andrew Godwin a3b6996413 Discard emoji reactions for now 2022-12-28 11:02:14 -07:00
Michael Manfre f17f9df27e
Identity.by_username_and_domain has more awareness of Domain (#303) 2022-12-28 10:52:39 -07:00
Andrew Godwin 5780068213 Implement max inbound payload size 2022-12-27 20:01:00 -07:00
Andrew Godwin 1fc5740696 Add funkwhale namespace 2022-12-27 19:47:17 -07:00
Michael Manfre cf8c5476e6
Hashtag stats are only computed when a Post is edited or updated (#299) 2022-12-27 19:42:38 -07:00
Michael Manfre 26f64bfc06
Guess emoji mimetype if not provided in tag (#298) 2022-12-27 19:41:16 -07:00
Michael Manfre efe6864418
Ensure a min of 2 metadata input rows on profile edit form (#297) 2022-12-27 17:45:51 -07:00
Michael Manfre c6c3914cc7
Include Identity metadata fields in ActivityPub messages (#295) 2022-12-27 17:42:30 -07:00
Cosmin Stejerean a949c99d48
change language for following / followers (#296) 2022-12-27 17:03:14 -07:00
Michael Manfre aa2ace9b68
Identity profile metadata input with dynamic form (#280) 2022-12-27 16:56:50 -07:00
Michael Manfre b63ad40f54
Add ability to customise Django settings (#292) 2022-12-27 16:53:49 -07:00
Michael Manfre ca40a0d150
Set User-Agent and Accept for outbound requests (#293) 2022-12-27 16:50:39 -07:00
Andrew Godwin b523d34c53 Don't parse the body if it's empty
Refs #290
2022-12-27 16:18:22 -07:00
Rui Carmo 029e51c8fe
More aggressive caching (#288) 2022-12-27 11:56:30 -07:00
Andrew Godwin f6e49e8059 Delete timeline events with posts
Fixes #284
2022-12-27 11:53:44 -07:00
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