Commit Graph

294 Commits

Author SHA1 Message Date
Andrew Godwin 188e5a2446 Remove all remaining async code for now 2023-07-17 00:37:47 -06:00
Andrew Godwin 0915b17c4b Prune some unnecessary async usage 2023-07-17 00:18:00 -06:00
Osma Ahvenlampi b2a9b334be
Resubmit: Be quieter about remote hosts with invalid SSL certs (#595) 2023-07-12 09:51:08 -06:00
Osma Ahvenlampi 5549d21528
Fix inbox processing errors from pinned posts and non-Mastodon servers (#596)
If a post (interaction) comes in from AP inbox but no local author profile exists,
fetch_actor will pull in both the identity AND its pinned posts, which the incoming
post might have been. This would case a database integrity violation. We check
for post existing again after syncing the actor.

Post processing also barfed on posts where content didn't follow Mastodon specs.
For example, Kbin sets tag names in 'tag' attribute, instead of 'name' attribute.
2023-07-12 09:49:30 -06:00
Osma Ahvenlampi 1cc9c16b8c
Use 400 and 401 error codes as OAuth2 documents, accept 400 as webfinger error code (#597) 2023-07-10 10:19:20 -06:00
Andrew Godwin 68eea142b1 Fix domain index issue 2023-07-10 10:11:48 -06:00
Andrew Godwin 933f6660d5 Catch all the subtypes too 2023-07-07 16:39:02 -06:00
Andrew Godwin 2fda9ad2b4 Also capture unknown message types 2023-07-07 16:33:55 -06:00
Andrew Godwin 4458594f04 Also capture JSON-LD errors 2023-07-07 16:32:57 -06:00
Andrew Godwin c93a27e418 Capture and don't thrash on badly formatted AP messages 2023-07-07 16:29:12 -06:00
Andrew Godwin 709f2527ac Refresh identities half as frequently 2023-07-07 15:52:12 -06:00
Andrew Godwin 7f483af8d3 Rework Stator to use a next field and no async 2023-07-07 15:14:06 -06:00
Humberto Rocha 226a60bec7
Fix canonicalize (#590) 2023-06-24 08:53:42 -06:00
Humberto Rocha 9038e498d5
Fix identity metadata not properly propagating through AP (#589) 2023-06-22 17:09:19 -06:00
mj2p bb8f589da7
Bugfix admin redirect fixes (#587) 2023-06-14 11:15:29 -06:00
Christof Dorner cec04e8ddb
Fixes various issues with pinned posts - continued (#581) 2023-05-15 11:36:33 -06:00
Christof Dorner 9bc18a1190
Fixes various issues with pinned posts (#580) 2023-05-15 10:54:32 -06:00
Andrew Godwin 888f4ad36c Move from index_together to indexes 2023-05-13 11:30:42 -06:00
Andrew Godwin f5a3971ef8 Implement replies profile tab and boosts option 2023-05-13 11:07:57 -06:00
Andrew Godwin 1fb02b06e1 Fixed #577: Send bot property down API right 2023-05-13 06:00:48 -06:00
Christof Dorner d6c9ba0819
Pinned posts (#561) 2023-05-13 10:01:27 -06:00
Christof Dorner 744c2825d9
Show posts and boosts on an identity's profile view (#574) 2023-05-12 17:43:26 -06:00
Karthik Balakrishnan f256217d1b
Show domain setup to admins (#568)
Prompts admin users to setup domains on the identity creation
2023-05-07 23:06:10 -06:00
Christof Dorner a4e6033a0b
Ignore unknown create/update types (#569) 2023-05-04 16:56:50 -06:00
Andrew Godwin 8f57aa5f37
UI/Domains Refactor
Redoes the UI to remove timelines, promote domains, and a lot of other things to support the refactor.
2023-05-03 22:42:37 -06:00
Christof Dorner e45195bb02
Handle posts with only contentMap as post instead of interaction (#549) 2023-03-23 12:27:32 -06:00
Christof Dorner 79c1be03a6
Add ability to follow hashtags 2023-03-14 15:35:40 -06:00
Dan Watson cedcc8fa7c
Bookmarks (#537) 2023-03-11 11:17:20 -07:00
Christof Dorner 56da914340
Allow to set default reply visibility (#531) 2023-03-08 11:01:21 -07:00
Christof Dorner 85b4910829
Added admin notes field to domains (#530) 2023-03-06 16:37:05 -07:00
Andrew Godwin b677bf5123 Add basic interface for assigning users to domains
Fixes #451
2023-02-19 11:09:49 -07:00
Humberto Rocha 79aea1b8ba
Add support to update Poll by AP (#514) 2023-02-18 10:38:31 -07:00
Andrew Godwin 33b24d99bc Fix follow repeats on pages
Fixes #510
2023-02-15 10:45:43 -07:00
Humberto Rocha e382994e73
Polls (#496)
Implement poll AP and API backend
2023-02-15 10:42:56 -07:00
Andrew Godwin 2cb125845b Export the actual followers!
Fixes #508
2023-02-14 09:33:30 -07:00
Andrew Godwin 9a0008db06 Add initial follow import/export
Fixes #437
2023-02-13 20:50:43 -07:00
Humberto Rocha 4eada68d9f
Fix filter to display only the ones you are actually following (#494) 2023-02-04 11:53:20 -07:00
Andrew Godwin f7948a55bf Actually do the right indexes in migrations 2023-02-03 22:24:28 -07:00
Andrew Godwin 36676fad59 Rework stator to avoid deadlocks on slow databases
Refs #424
2023-02-03 21:51:24 -07:00
Andrew Godwin a6922cb9d6 Move to a new HTML parser/stripper
This removes the use of the EOL'd Bleach, and also integrates hashtag,
mention and emoji searching into one single place.
2023-01-29 17:47:06 -07:00
Andrew Godwin 1670c92269 Send out emoji tags for identities 2023-01-28 11:01:42 -07:00
Michael Manfre a22ba4859b Downgrade follow not found to capture_message 2023-01-27 10:52:32 -07:00
Andrew Godwin 653ab07fd6 Swap a decent number of admin fields to autocomplete 2023-01-26 10:01:21 -07:00
Andrew Godwin 75ba7e3160 Make user admin a raw ID field 2023-01-26 09:52:03 -07:00
Andrew Godwin f967f6c697
Clarify domain wording a little
Fixes #469
2023-01-23 16:17:18 -07:00
Michael Manfre 0ba0971baa
Remove capture message for deleting unknown actor (#466) 2023-01-20 17:56:36 -07:00
Corry Haines 46947279b0
Attach user identification headers to response (#453)
Add X-Takahe-User and X-Takahe-User-Identity headers to response, when available, to allow for better Nginx log enrichment.

Also drop these headers in Nginx so they aren't sent into the world. They probably aren't dangerous since they identfy the users _to themselves_ but strip it for now, just in case.
2023-01-20 17:20:14 -07:00
Andrew Godwin f150a3eee9 Don't allow self-mute and self-block
Fixes #454
2023-01-20 09:31:37 -07:00
Andrew Godwin ee3b51c28f Fix username display to yourself in clients 2023-01-19 16:34:49 -07:00
Michael Manfre 51ae78a33c
Downgrade most fetch related errors to capture_message (#443) 2023-01-19 13:14:55 -07:00