Commit graph

703 commits

Author SHA1 Message Date
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
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