Commit Graph

109 Commits

Author SHA1 Message Date
Henri Dickson 70b9e3b900
Support follow requests (#625) 2023-08-18 15:49:45 +09:30
TAKAHASHI Shuuji 67d755e6d3
Support to export blocks/mutes as CSV files (#626) 2023-08-07 09:16:52 -06:00
Humberto Rocha f3bab95827
Add support to import blocklists (#617) 2023-07-24 17:59:50 -06:00
Andrew Godwin cc6355f60b Refs #613: Also block subdomains 2023-07-22 10:54:36 -06:00
Andrew Godwin 759d5ac052 Fixed #616: Do followers-only properly 2023-07-22 10:38:22 -06:00
Andrew Godwin 1dd076ff7d Fixed #615: Nicely reject malformatted http signatures 2023-07-20 09:55:36 -06:00
Andrew Godwin 188e5a2446 Remove all remaining async code for now 2023-07-17 00:37:47 -06:00
Humberto Rocha 5f49f9b2bb
Add support to dismiss notifications (#605) 2023-07-11 16:37:03 -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 542e3836af
Add endpoint to get notification by id (#594) 2023-07-04 08:06:31 -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
TAKAHASHI Shuuji f88ad38294
Prepend invisible URL protocol prefix (#586) 2023-05-26 09:02:49 -06:00
TAKAHASHI Shuuji 2040124147
Prevent dropping ellipsis URL (#585) 2023-05-24 11:41:56 -06:00
Andrew Godwin 46679a5c73 Bump up django-upgrade 2023-05-13 11:20:47 -06:00
Andrew Godwin f4bbe78bd5 Fix tests after mentions change 2023-05-13 11:19:23 -06:00
Christof Dorner d6c9ba0819
Pinned posts (#561) 2023-05-13 10:01:27 -06:00
Christof Dorner 9775fa8991
Add `mention` class to user mention links (#575)
This should fix mention links in Elk to keep linking inside Elk, not to the instance of the mentioned user.
2023-05-09 09:55:19 -06:00
Karthik Balakrishnan dcc4a5723e
Migrate to new staticfiles storage setting (#570) 2023-05-07 23:08:33 -06:00
Andrew Godwin 709dc86162 Fixed #559: Trim hashtags to 100 chars or less 2023-05-03 23:12:28 -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 7d1558a2ab
Support editing media description when editing statuses (#556) 2023-04-11 09:35:36 -06:00
Christof Dorner e45195bb02
Handle posts with only contentMap as post instead of interaction (#549) 2023-03-23 12:27:32 -06:00
Andrew Godwin 1994671541 Correctly handle GTS mentions of same username
Fixes #546
2023-03-22 10:44:15 -06:00
Humberto Rocha c702b1b24d
Always return voters_count (#543) 2023-03-15 18:46:12 -06:00
Christof Dorner 79c1be03a6
Add ability to follow hashtags 2023-03-14 15:35:40 -06:00
Dan Watson 6f4abd5aae
Initial support for IceCubes (#532) 2023-03-09 10:47:33 -07:00
Humberto Rocha 9aff13118a
Fix crash when fetching emoji without mimetype and extension (#524) 2023-02-25 14:47:43 -07:00
Humberto Rocha e625fae13d
Fix hashtag being handled as common link in the preview card (#515) 2023-02-19 20:35:54 -07:00
Andrew Godwin 1f3f28e8ff Check scope on API endpoints 2023-02-19 11:37:02 -07:00
Humberto Rocha 79aea1b8ba
Add support to update Poll by AP (#514) 2023-02-18 10:38:31 -07:00
Humberto Rocha e43d0a052c
Fix unliked post displaying in favourites endpoint (#512) 2023-02-15 16:05:48 -07:00
Humberto Rocha e382994e73
Polls (#496)
Implement poll AP and API backend
2023-02-15 10:42:56 -07:00
TAKAHASHI Shuuji cc0bbfb93b
Fix CSV export to export followers handle instead of following user handle (#509) 2023-02-14 09:34:07 -07:00
Andrew Godwin 8adc17c5ea Add import/export tests 2023-02-13 21:19:20 -07:00
Michael Manfre 1ac6519316
Update _test_settings fixture to work with Django 4.1 and 4.2 (#507) 2023-02-13 20:57:07 -07:00
Andrew Godwin 9a0008db06 Add initial follow import/export
Fixes #437
2023-02-13 20:50:43 -07:00
Andrew Godwin 1c5ef675f0 Implement post editing 2023-02-13 19:40:10 -07:00
Andrew Godwin 5d2ed9edfe
Hatchway API Rewrite (#499)
Removes django-ninja and replaces it with a new API framework, "hatchway".

I plan to move hatchway into its own project very soon.
2023-02-07 12:07:15 -07:00
Humberto Rocha 21e286c5d2
Fix linter fails with the CI (#497) 2023-02-04 21:33:01 -07:00
okpierre 94271b34ac
Show post count even when other counts are hidden 2023-02-04 11:55:48 -07:00
Humberto Rocha d8fc81a9a6
Keep the casing pattern provided by the instance (#495) 2023-02-03 17:02:35 -07:00
Humberto Rocha b9e8f19e90
Fix fetching poll votes and voter_count (#482) 2023-01-29 21:20:57 -07:00
Andrew Godwin 1ffbb2e860 Fix hashtag extraction on post edit 2023-01-29 18:13:21 -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
Humberto Rocha ccded99a63
Add favourites api endpoint (#465) 2023-01-20 19:49:55 -07:00
Michael Manfre cc75863b8f
Fixes #431 - Preserve href when stripping <a> tags (#436) 2023-01-17 23:41:33 -07:00
Michael Manfre 9b6ceee490
Apply Mastodon style link text shortening (#426) 2023-01-16 11:59:46 -07:00
Andrew Godwin 54e7755080 Unfollowing or blocking users purges timeline
Fixes #366
2023-01-16 11:53:40 -07:00
Corry Haines cfe18932b8
Match sanitizing for posts to Mastodon (#422)
Creates filter for REWRITTEN_TAGS that converts them to `p` rather than ripping them out entirely, and formats `ul` as break-separated list

Both changes align sanitization to Mastodon's "strict" sanitizer at https://github.com/mastodon/mastodon/blob/main/lib/sanitize_ext/sanitize_config.rb#L73

I don't love the complexity of the Filter, but Bleach doesn't give us great options to work with. The code operates within an iterator without the useful "sibling" methods that Ruby's equivalent has. Also, Bleach runs filters _after_ sanitizing (unlike Ruby's which runs before) so we have to pass all the elements through the sanitizer, then rewrite them after the fact.
2023-01-15 22:32:04 -07:00