Commit graph

162 commits

Author SHA1 Message Date
Michael Manfre b63ad40f54
Add ability to customise Django settings (#292) 2022-12-27 16:53:49 -07:00
Andrew Godwin 96e95da73f More 0.6 release prep 2022-12-24 10:50:24 -07:00
Andrew Godwin f5d06d2656 Move wellness options inside Interface 2022-12-23 23:01:27 -07:00
Andrew Godwin 6be1e7df44 Make oauth screens plain as well 2022-12-23 22:34:33 -07:00
Michael Manfre aca77314d1
Fixes #239 - Add option to hide Boost and Like counts (#247) 2022-12-23 22:16:26 -07:00
Andrew Godwin 043a41afd3 Allow turning debug toolbar on separately 2022-12-23 01:59:31 -07:00
Andrew Godwin a058140d11 New "plain" page style for most logged out pages 2022-12-22 13:06:35 -08:00
Andrew Godwin 025fd5cf07 Emoji refactor
Emojis are now prefetched from the post, and if not, looked up
individually by shortcode, to prevent loading hundreds.
2022-12-22 16:55:31 +00:00
Andrew Godwin 9c376395db Invites overhaul
No email tie, added uses and expires, now works by URL.
2022-12-22 07:03:21 +00:00
Corry Haines 4657a1eece
Catch up to 0.6.0 (#217)
A few tweaks to catch my deployment on Fly.io and/or AWS up to 0.6.0. Mostly quality-of-life fixes
2022-12-22 20:47:13 +00:00
Andrew Godwin 3e2ae1b209 Totally unload debug toolbar outside of debug 2022-12-21 22:14:41 +00:00
Andrew Godwin c9794c0fcf Add public following/followers pages 2022-12-21 20:36:10 +00:00
Andrew Godwin f82b82502c Install debug toolbar in debug mode 2022-12-20 15:26:39 +00:00
Andrew Godwin e28294c81a Hashtag admin simplification 2022-12-20 09:16:03 +00:00
Andrew Godwin 0c4eb74165 Invites admin 2022-12-20 08:52:03 +00:00
Andrew Godwin 2ccf2e683e Allow tuning of stator concurrency 2022-12-20 08:02:35 +00:00
Andrew Godwin a26263fb05 Nginx now bundled in image, does media caching
Also serves static files. Old media caching removed.
2022-12-19 04:26:42 +00:00
Andrew Godwin 3de188e406 Fix Accept header and supply actor outbox
Should help with Mitra among others. Refs #207.
2022-12-19 02:47:35 +00:00
Andrew Godwin ecde831e77 Sample way less transactions 2022-12-19 00:42:08 +00:00
NaphalSec da3c0d5bbf
Add "AWS_S3_CUSTOM_DOMAIN" for S3 Media Backend CDN support 2022-12-18 14:04:46 -07:00
Andrew Godwin 58e11ae3b6 Debug JSON view, json fixes 2022-12-18 11:00:21 -07:00
Andrew Godwin 2772ee7188 Let's use dev version numbers 2022-12-17 17:03:24 -07:00
Andrew Godwin e8d6dccbb2 Report function and admin 2022-12-17 14:45:31 -07:00
Andrew Godwin 2eb07a5f5f Download and store user avatars locally if small 2022-12-17 12:53:13 -07:00
Andrew Godwin 12567f6891 Identity admin/moderation 2022-12-16 19:42:48 -07:00
Gabriel Rodríguez Alberich fb2eea956e
Several pagination improvements (#170)
Home/Notification gets pagination, Follows becomes ListView
2022-12-16 17:06:29 -07:00
Andrew Godwin 45c6978bc3 User admin and LD schema fixes 2022-12-16 16:38:52 -07:00
Andrew Godwin 9ad9bdd936 Implement post rate limits, move to signed cookies
Also improve the test harness a little
Fixes #112
2022-12-15 15:55:33 -07:00
Andrew Godwin 1130c23b1e Stator stats overhaul
Removes the error table, adds a stats table and admin page.
Fixes #166
2022-12-15 12:26:44 -07:00
TAKAHASHI Shuuji 61fbda0ebf
Set the correct Content-Type header for static WebP images (#171) 2022-12-15 10:31:25 -07:00
Michael Manfre af3142ac3a
Basic Emoji suppport (#157) 2022-12-15 00:50:54 -07:00
Andrew Godwin 69f1b3168a Improve cacheability 2022-12-15 00:43:39 -07:00
Andrew Godwin 3dc28ea9f2 Fix gs:// settings schema 2022-12-14 21:43:24 -07:00
Andrew Godwin 16005e14ef Make GCS backend handle webp right, and use gs://
Fixes #164
2022-12-14 21:21:18 -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 fc8a21fc5c More API read coverage 2022-12-12 11:56:49 -07:00
Andrew Godwin 3e062aed36 Timelines working 2022-12-12 11:56:49 -07:00
Andrew Godwin 1017c71ba1 Working start of an OAuth flow 2022-12-12 11:56:49 -07:00
Andrew Godwin 602e5a3780 Add system actor and shared inbox 2022-12-10 13:24:49 -07:00
Andrew Godwin 3595af7bd2 Media proxy, caching and tuning docs
Fixes #67
2022-12-10 12:16:08 -07:00
Michael Manfre 39a40e4dae
Set a Takahe User-Agent header for signed requests (#142) 2022-12-06 21:59:05 -07:00
Michael Manfre e2b234d9ed
Setting to enable Sentry capture_messages (#128) 2022-12-06 09:50:42 -07:00
Andrew Godwin 9fe2e6676c Add a middleware to detect LD Accept headers 2022-12-05 20:02:35 -07:00
Andrew Godwin a31f676b46 Policy pages and signup tests.
Fixes #113
2022-12-05 19:24:46 -07:00
Paolo Melchiorre 22e25ac454
Add django-upgrade to pre-commit (#114) 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 (#103) 2022-12-05 10:38:37 -07:00
Avi Flax 4493eefb76
Make max media upload size configurable 2022-12-04 18:20:50 -07:00
Michael Manfre 3f8045f412
[WIP] Sentry improvements (#108)
Stator clears scope during the main loop to behave more like
transactions. Transaction names are set.

Sentry tags:
* 'takahe.version'
* 'takahe.app' values 'web' or 'stator'

Added settings:
* TAKAHE_SENTRY_SAMPLE_RATE
* TAKAHE_SENTRY_TRACES_SAMPLE_RATE
2022-12-04 18:08:23 -07:00
Andrew Godwin c575301760 Releasing 0.5.0 2022-12-04 10:50:32 -07:00
Andrew Godwin ec1848e095 Adding RSS feeds for local identities 2022-12-04 08:20:50 -07:00
Tyler Kennedy 6ce05296b0
Make follows a top-level activity. (#94) 2022-12-04 09:41:41 -07:00
Michael Manfre 61c1058d67
Add TAKAHE_DEFAULT_TIMEOUT with default of 5.0 (#99) 2022-12-04 09:32:25 -07:00
Andrew Godwin 250afe4e40 Allow quoted usernames too 2022-12-02 16:36:07 -07:00
Andrew Godwin 6f2f28a3a7 Image attachment uploads 2022-12-01 18:47:04 -07:00
Tyler Kennedy ee9ac29cca
Test support for sqlite. (#68) 2022-12-01 09:53:45 -07:00
Andrew Godwin 4344fdad9a Update S3 to use world-readable files 2022-12-01 09:43:36 -07:00
Corry Haines 17107618a0
unquote SMTP and AWS passwords (#78)
Passwords can contain characters that are illegal in URL identities. So use unquote to solve that.

WARNING: This means that a freak URL escape in a password will fail in the opposite way. But since this is a URL, everything _must_ be urlencoded for sanity.
2022-11-29 09:32:38 -07:00
Michael Manfre fb8f2d1098
Hashtags 2022-11-28 21:41:36 -07:00
Andrew Godwin 7f838433ed Allow local:// media backends
Fixes #77
2022-11-28 21:26:02 -07:00
Corry Haines ab1247fd2d
Relax S3 URI parsing 2022-11-28 10:22:39 -07:00
Corry Haines 10315535bd
Fix case typo in email settings (#72) 2022-11-27 23:16:00 -07:00
Andrew Godwin 2d569a8050 Fix SendGrid key ingestion 2022-11-27 17:30:33 -07:00
Tyler Kennedy 2d4cf3d56e
Schema is required for S3 endpoints. (#66) 2022-11-27 15:20:49 -07:00
Andrew Godwin c7b6264f23 Releasing 0.4.0 2022-11-27 14:09:16 -07:00
Michael Manfre 6c7ddedd34
Post editing 2022-11-27 11:09:46 -07:00
Michael Manfre 18c85bc6d2
Specify settings .env file with TAKAHE_ENV_FILE 2022-11-27 10:57:13 -07:00
Andrew Godwin 4377160155 Force testing settings during test 2022-11-27 00:32:34 -07:00
Andrew Godwin db88c733b4 The glorious return of the in-view runner 2022-11-26 11:54:14 -07:00
Andrew Godwin a3f45a001b Bit of a settings fixup to make it work with t.s 2022-11-26 11:33:33 -07:00
Tyler Kennedy c758858392
Simplified settings
Migrated settings to typed pydantic settings
2022-11-26 10:04:04 -07:00
Andrew Godwin 8ca36fd958 Add federation admin page 2022-11-25 17:52:57 -07:00
Andrew Godwin 79002e1eaf Add initial delete UI 2022-11-24 22:31:57 -07:00
Michael Manfre f88efa40d4
Code dedupe Webfinger and fix SystemActor inbox URL 2022-11-22 21:53:02 -07:00
Andrew Godwin 05ed5989e3 Better way to initialise things on setup. 2022-11-22 11:59:34 -07:00
Andrew Godwin 3131ace8a6 Add domain to tests, make local use right settings 2022-11-20 23:21:42 -07:00
Andrew Godwin da936cd7df Don't try to make a keypair during tests 2022-11-20 23:08:09 -07:00
Andrew Godwin 5ddce16213 Add a system actor to sign outgoing S2S GETs 2022-11-20 18:29:19 -07:00
Andrew Godwin 70d01bf1b4 Fixed #23: Replace https hack with header setting 2022-11-20 13:58:54 -07:00
Andrew Godwin 77643a4fe1 Add more error handling 2022-11-20 12:24:03 -07:00
Andrew Godwin 4b4032be6f Add Sentry error integration option 2022-11-20 11:18:55 -07:00
Andrew Godwin 2142677b01 A few more tweaks for an initial deploy 2022-11-19 10:20:13 -07:00
Andrew Godwin 8019311490 Deployment re-jiggling 2022-11-18 17:24:43 -07:00
Andrew Godwin 81de10b70c Migration reset, start of docs, env vars 2022-11-18 11:28:16 -07:00
Andrew Godwin 1b44a25331 Signup and invite tweaks 2022-11-18 00:09:04 -07:00
Andrew Godwin b3072c81ba Follows page 2022-11-17 20:04:01 -07:00
Andrew Godwin adf2449d37 Add the user settings page too 2022-11-17 19:36:25 -07:00
Andrew Godwin 6adfdbabe0 Add signup and password reset 2022-11-17 19:16:34 -07:00
Andrew Godwin 2a3690d1c1 Return images and summary in actor 2022-11-17 17:55:50 -07:00
Andrew Godwin 291d7e404e Logged out experience, config, and profiles 2022-11-17 17:33:09 -07:00
Andrew Godwin 0851fbd1ec Add search and better notifications 2022-11-17 15:10:09 -07:00
Andrew Godwin f5eafb0ca0 Add image/icon upload 2022-11-17 12:21:44 -07:00
Andrew Godwin 5b34ea46c3 Call it admin rather than system settings 2022-11-16 21:42:25 -07:00
Andrew Godwin 1b52acdb56 Domains management pages 2022-11-16 21:12:28 -07:00
Andrew Godwin 44af0d4c59 Add start of a settings (config) system 2022-11-16 17:23:46 -07:00
Andrew Godwin 495e955378 Tag and visibility handling 2022-11-16 13:53:40 -07:00
Andrew Godwin 20e63023bb Get outbound likes/boosts and their undos working 2022-11-15 15:30:32 -07:00
Andrew Godwin ddb3436275 Boosting! Incoming, anyway. 2022-11-13 18:43:09 -07:00
Andrew Godwin 34b24a0dcb More UI! 2022-11-13 16:15:14 -07:00
Michael Manfre 5a8b6bb3d0
Improving contributing docs/process 2022-11-13 13:57:27 -07:00