Commit Graph

203 Commits

Author SHA1 Message Date
Michael Manfre 51ae78a33c
Downgrade most fetch related errors to capture_message (#443) 2023-01-19 13:14:55 -07:00
Andrew Godwin cfb4975fdf Unlinkify profile values in edit fields 2023-01-19 10:30:42 -07:00
Michael Manfre e5485b1430
Handle nodeinfo validation errors (#439) 2023-01-18 10:57:28 -07:00
Andrew Godwin 54e7755080 Unfollowing or blocking users purges timeline
Fixes #366
2023-01-16 11:53:40 -07:00
Andrew Godwin c3caf26f22 Ignore emoji react undos as well 2023-01-16 11:27:23 -07:00
Andrew Godwin 57dfc330e0 Fix source for no bio 2023-01-15 16:29:11 -07:00
Andrew Godwin de9261251e Fixed #421: Allow profile editing via API 2023-01-15 16:15:57 -07:00
Andrew Godwin b44be55609 Fixed #408: Implemented blocking 2023-01-15 13:35:45 -07:00
Michael Manfre 1f44e93518
Handle servers that return wrong webfinger payload (#415) 2023-01-14 14:19:47 -07:00
TAKAHASHI Shuuji 3679448cdf
FIx HTML issues found by djLint (#409) 2023-01-14 10:32:48 -07:00
Andrew Godwin 9876b81f66 Add announcements client API 2023-01-13 16:12:05 -07:00
Andrew Godwin 8b3106b852 Implement server announcements
Fixes #377
2023-01-13 16:12:05 -07:00
Michael Manfre 18b50ce0e6
Silence a few common errors when fetching (#404)
Downgrade nodeinfo json error to a captured message
2023-01-13 10:53:02 -07:00
Andrew Godwin fa688a5a73 Fixed #383: Render links in API metadata values 2023-01-11 22:04:03 -07:00
Humberto Rocha ae74d65157
Fix identity not fetching emoji (#397) 2023-01-11 17:07:59 -07:00
Andrew Godwin 113db4ab3a Fixed #376: Emoji admin page
Also did a new table style for admin pages
2023-01-10 20:31:50 -07:00
Andrew Godwin ecec5d6c0a Implement snowflake IDs for some models.
Still needs fixes to the client API paginator.
2023-01-08 18:05:29 -07:00
Andrew Godwin f4a8a96b81 Add first-class deletion support to Stator 2023-01-08 12:43:52 -07:00
Michael Manfre db186fcd73
Lookup nodeinfo url with /.well-known/nodeinfo (#367)
Fixes #364
2023-01-07 10:36:36 -07:00
Corry Haines be7ce6ed62
Improve /api/v1/accounts/{id}/statuses perf (#355) 2023-01-05 22:51:02 -07:00
Michael Manfre f1fa4aa1e2
Ignore 406 response for webfinger and nodeinfo (#356) 2023-01-04 21:45:29 -07:00
Michael Manfre 1768781fed
Fix typo in Domain.fetch_nodeinfo error handling string (#354) 2023-01-04 21:39:01 -07:00
Michael Manfre 801fe2e58a
Add Domain.state with nodeinfo fetching (#347) 2023-01-04 16:40:16 -07:00
NaphalSec c10aa46fc5
New Moderation Report Email (#346) 2023-01-02 16:31:32 -07:00
Andrew Godwin bb0ee1b152 Purge failing inbox messages too 2023-01-01 13:10:54 -07:00
Michael Manfre 5f1d7b5253
Add indexes for Stator and some of its common tasks (#332) 2023-01-01 10:58:13 -07:00
Andrew Godwin ae12aadd38 Include actor URI in another error
Fixes #331
2022-12-31 13:53:21 -07:00
Andrew Godwin 13fc4b42de Handle Diaspora's XML webfinger 2022-12-31 11:13:51 -07:00
Andrew Godwin 8fe99718f3 Don't complain on delete on unknown URIs 2022-12-31 10:49:45 -07:00
NaphalSec 05adbace24
email templates (#328) 2022-12-30 16:03:11 -07:00
Cosmin Stejerean eea83214cb
Option to show/hide boosts for a followed user (#317) 2022-12-30 15:03:11 -07:00
Andrew Godwin 011c51b3c4 Implement progressive thread parent fetching 2022-12-30 11:48:42 -07:00
Andrew Godwin 52b4384cd6 Add follow notifications for local follows too
Fixes #326
2022-12-30 10:20:39 -07:00
Michael Manfre 75c17c0766
Correctly handle response.raise_for_status() and guard search from bubbling parse errors (#322) 2022-12-30 01:02:33 -07:00
Michael Manfre 0250f2800b
Identity profile menus 2022-12-30 01:01:03 -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
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 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
Michael Manfre c6c3914cc7
Include Identity metadata fields in ActivityPub messages (#295) 2022-12-27 17:42:30 -07:00
Michael Manfre ca40a0d150
Set User-Agent and Accept for outbound requests (#293) 2022-12-27 16:50:39 -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
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
Andrew Godwin da00a67cb5 Don't double escape summary 2022-12-24 12:49:59 -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
Michael Manfre 9fb18ac841
Identity background images can be relative (#250) 2022-12-23 21:57:50 -07:00
Tyler Kennedy 5dcdee237c
Handle host-meta, which is required for webfinger, not optional. (#220) 2022-12-23 21:35:17 -07:00
Andrew Godwin c890382b30 Fix some of that webfinger breakage 2022-12-22 10:43:53 -08: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
Andrew Godwin ff38948b2f Handle language'd public keys 2022-12-22 05:59:07 +00:00
Andrew Godwin 8729baaea4 Show when a follow is pending 2022-12-22 05:54:01 +00:00
Andrew Godwin ca3dc82a62 Don't linkify hashtags in usernames and metadata
Fixes #228
2022-12-22 01:10:56 +00:00
Michael Manfre 578b504c92
Include long form and shortform actor uri in webfinger to fix some servers (#226) 2022-12-22 20:51:39 +00:00
Andrew Godwin f5f74dc150 Further search fixing 2022-12-21 21:46:09 +00:00
Andrew Godwin 45de0e09b5 Switch to preserving username case
Except on comparisons, for now. Fixes #224
2022-12-21 21:39:56 +00:00
Andrew Godwin 13ebe14cf9 Don't show deleted follows, and sort publicly 2022-12-21 20:56:52 +00:00
Andrew Godwin c9794c0fcf Add public following/followers pages 2022-12-21 20:36:10 +00:00
Michael Manfre ed83726247
Identity fanout (#196) 2022-12-21 17:13:39 +00:00
Andrew Godwin 3f37c7ffe7 Don't allow empty or bad actor responses 2022-12-21 16:13:36 +00:00
Andrew Godwin 480fa70b1f Handle rejected follows 2022-12-21 16:11:58 +00:00
Andrew Godwin d1e398a7b7 Invite creation improvements 2022-12-20 14:38:42 +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 0c4eb74165 Invites admin 2022-12-20 08:52:03 +00:00
Andrew Godwin d91d090566 Handle follows to dead actors 2022-12-20 07:10:31 +00:00
Andrew Godwin f4f575d22f Type and fanout fixes 2022-12-20 07:01:30 +00:00
Andrew Godwin 6eaaa6eac4 Allow other Actor types 2022-12-20 06:52:33 +00:00
Andrew Godwin c3a60bbf13 Remove identity avatar fetching 2022-12-19 20:55:27 +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 adf245b416 Follow webfinger redirects 2022-12-18 14:00:28 -07:00
Michael Manfre a408cbaa27
Post types (#182)
Initial support for Posts of type other than 'Note'. Render special Post types with templates.
2022-12-18 09:09:25 -07:00
Michael Manfre bb81f0e559
Process Identity metadata name same as value (#194) 2022-12-17 21:15:11 -07:00
Michael Manfre ea99f65c26
Icon and image for Identity could be a list 2022-12-17 15:42:29 -07:00
Andrew Godwin d08324e159 Handle timeouts on image fetch 2022-12-17 15:00:50 -07:00
Andrew Godwin 64f113dd8d Receive inbound reports 2022-12-17 14:58:04 -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 24a4fbe1f8 Catch all possible request errors 2022-12-17 12:29:48 -07:00
Andrew Godwin 0fa5522e6a Handle delete.note as well as delete.tombstone 2022-12-17 12:18:04 -07:00
Andrew Godwin 62f2b867b9 Fix serving of system actor
Fixes #183
2022-12-17 12:00:47 -07:00
Andrew Godwin e5b76c120e Fetch emoji for user profiles 2022-12-16 20:04:28 -07:00
Andrew Godwin 770f6728f6 Fix mastodon LD namespace
Fixes #179
2022-12-16 19:45:39 -07:00
Andrew Godwin 12567f6891 Identity admin/moderation 2022-12-16 19:42:48 -07:00
Andrew Godwin 45c6978bc3 User admin and LD schema fixes 2022-12-16 16:38:52 -07:00
Andrew Godwin e0f1bb629c URLs can be empty too 2022-12-15 19:10:50 -07:00
Andrew Godwin faca9224ed Handle API identities with no name 2022-12-15 18:59:04 -07:00
Michael Manfre af3142ac3a
Basic Emoji suppport (#157) 2022-12-15 00:50:54 -07:00
Andrew Godwin 5bc9ff39ac Fix static file URLs 2022-12-12 11:56:49 -07:00
Andrew Godwin 8ffe4bc145 A better way of handling URIs between local/remote 2022-12-12 11:56:49 -07:00
Andrew Godwin 3e062aed36 Timelines working 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
Paolo Melchiorre a9bb4a7122
Add pyupgrade with --py310-plus in pre-commit (#103) 2022-12-05 10:38:37 -07:00
Andrew Godwin 93ccb5dd32 Make search work with URLs 2022-12-04 21:13:33 -07:00
Andrew Godwin 676bc8c0ee Make the user fetch interval much longer 2022-12-04 10:46:59 -07:00
Andrew Godwin 8835fdee6b Explicitly ignore add and remove messages for now 2022-12-04 07:36:38 -07:00