1
1
Fork 0
mirror of https://github.com/jointakahe/takahe.git synced 2025-02-12 21:55:14 +00:00
Commit graph

93 commits

Author SHA1 Message Date
Corry Haines
31187c99b2
Quality of life ()
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
b53504fe64
Basic OpenGraph support ()
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
Andrew Godwin
d32a686eb1 Persist CWs in replies, expand linked at once
Fixes 
2022-12-26 10:03:13 -07:00
Michael Manfre
5536397bdb
Prettier debug json () 2022-12-24 11:05:07 -07:00
Andrew Godwin
087cb2a15f Rework post/event querysets to always fetch stuff 2022-12-24 10:50:01 -07:00
Andrew Godwin
6be1e7df44 Make oauth screens plain as well 2022-12-23 22:34:33 -07:00
Andrew Godwin
a058140d11 New "plain" page style for most logged out pages 2022-12-22 13:06:35 -08:00
Andrew Godwin
f9b5f372ac Responsive styling fix, shorter pages
Refs 
2022-12-22 01:06:01 +00:00
Andrew Godwin
13ebe14cf9 Don't show deleted follows, and sort publicly 2022-12-21 20:56:52 +00:00
Gabriel Rodríguez Alberich
1349144e37
Minor design tweaks to the Follows page ()
* Filter outbound and inbound follows by active state
* Change pill appearance to distinguish it from buttons
* Signal destructive action when hovering unfollow buttons
* Add hover style to the top "tabs"/"filters"
* Make filters icon have the same width so selecting them doesn't change the options total width, which is mildly unnerving
2022-12-21 19:57:14 +00:00
Andrew Godwin
e2371a3cd7 Move timelines to a service class 2022-12-21 19:47:48 +00:00
Michael Manfre
a7082decc8
Optimize timeline queries () 2022-12-21 11:09:18 +00:00
Andrew Godwin
6039cde49e It's amazing what a little select_related can do 2022-12-20 15:35:48 +00:00
Andrew Godwin
f82b82502c Install debug toolbar in debug mode 2022-12-20 15:26:39 +00:00
Andrew Godwin
4635874c12 Relax accept header for gup.pe 2022-12-20 13:21:50 +00:00
Andrew Godwin
4ad4f468a4 Refactor HTML rendering into one place
Also suppress using external <a> tags for now, until we can separate
them from hashtags properly.
2022-12-20 11:39:45 +00:00
Andrew Godwin
db3fc7c53c Fetch actors with posts when needed
Fixes , 
2022-12-20 10:17:52 +00:00
Andrew Godwin
9067caf9a3 Add expanded post context
Fixes 
2022-12-20 09:59:06 +00:00
Michael Manfre
84dbb51de7
Raw response in JSON debug () 2022-12-20 08:19:00 +00:00
Andrew Godwin
6cdcbcfab9 Remove test URL 2022-12-18 11:14:19 -07:00
Andrew Godwin
58e11ae3b6 Debug JSON view, json fixes 2022-12-18 11:00:21 -07:00
Andrew Godwin
5d6ff57b5f Don't include broken users in reply mentions
Fixes 
2022-12-18 09:50:29 -07:00
Andrew Godwin
90c7b615fd Move timelines to published date all around 2022-12-18 09:44:56 -07:00
Andrew Godwin
cc3c3d9816 404 deleted posts 2022-12-16 21:32:08 -07:00
Andrew Godwin
12567f6891 Identity admin/moderation 2022-12-16 19:42:48 -07:00
Andrew Godwin
c588567c86 Add follow times 2022-12-16 17:39:10 -07:00
Andrew Godwin
be377653fe Fix inbound/outbound links 2022-12-16 17:32:04 -07:00
Andrew Godwin
00795f119e Split Follows page into two types
This overcomes the query problem of pulling a combined list
2022-12-16 17:24:56 -07:00
Gabriel Rodríguez Alberich
fb2eea956e
Several pagination improvements ()
Home/Notification gets pagination, Follows becomes ListView
2022-12-16 17:06:29 -07:00
Andrew Godwin
9ad9bdd936 Implement post rate limits, move to signed cookies
Also improve the test harness a little
Fixes 
2022-12-15 15:55:33 -07:00
Michael Manfre
af3142ac3a
Basic Emoji suppport () 2022-12-15 00:50:54 -07:00
Gabriel Rodríguez Alberich
8db05bed95
Prevent n+1 queries when rendering timelines ()
The linkify_mentions function is traversing the post's mentions, so
better prefetch those.
2022-12-14 10:16:22 -07:00
Tyler Kennedy
0d8b7db272
Set the content type and disposition of webp files uploaded to S3 2022-12-13 23:26:19 -07:00
Andrew Godwin
20239b5cb7 Basic post mutation 2022-12-12 11:56:49 -07:00
Andrew Godwin
fc8a21fc5c More API read coverage 2022-12-12 11:56:49 -07:00
Andrew Godwin
f504e9c351 Fix form loading hyperscript config 2022-12-11 09:34:44 -07:00
TAKAHASHI Shuuji
6d473a83cc
Add the character counter next to the Post button () 2022-12-11 09:25:48 -07:00
Avi Flax
9405698e3c
Two small tweaks to compose UI () 2022-12-11 09:23:39 -07:00
Andrew Godwin
3595af7bd2 Media proxy, caching and tuning docs
Fixes 
2022-12-10 12:16:08 -07:00
Andrew Godwin
20f3919783 Add interaction states on notifications page
Fixes 
2022-12-08 22:59:34 -07:00
Michael Manfre
b8460b0acd
Only cache unauthenticated page views () 2022-12-05 22:23:07 -07:00
Andrew Godwin
b0929214d5 Allow selecting notification types to see 2022-12-05 22:15:05 -07:00
Andrew Godwin
9fe2e6676c Add a middleware to detect LD Accept headers 2022-12-05 20:02:35 -07:00
Michael Manfre
da9a3d853e
Fix unset parent variable when viewing top post () 2022-12-05 16:07:18 -07:00
Paolo Melchiorre
22e25ac454
Add django-upgrade to pre-commit () 2022-12-05 14:44:50 -07:00
Michael Manfre
d6eb16a398
Added caching and initial settings 2022-12-05 10:55:30 -07:00
Paolo Melchiorre
a9bb4a7122
Add pyupgrade with --py310-plus in pre-commit () 2022-12-05 10:38:37 -07:00
Andrew Godwin
9becbb24d4 Fix post tests, don't reply to self 2022-12-04 21:30:18 -07:00
Andrew Godwin
107c3d6cf8 Fetch post parents live too 2022-12-04 21:22:20 -07:00
Andrew Godwin
93ccb5dd32 Make search work with URLs 2022-12-04 21:13:33 -07:00