Commit Graph

33 Commits

Author SHA1 Message Date
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 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
Andrew Godwin 54e7755080 Unfollowing or blocking users purges timeline
Fixes #366
2023-01-16 11:53:40 -07:00
Andrew Godwin b721833b4f Fix old post tests 2023-01-15 21:11:08 -07:00
Andrew Godwin b44be55609 Fixed #408: Implemented blocking 2023-01-15 13:35:45 -07:00
Andrew Godwin a875dd7a54 Perform shared inbox delivery 2023-01-08 13:46:40 -07:00
Andrew Godwin b03d9f0e12 Handle deletions of post URIs
Fixes #306
2022-12-28 22:47:28 -07:00
Michael Manfre ab398758a9
Fixed mention linking with mixed case usernames (#265) 2022-12-24 21:04:25 -07:00
Andrew Godwin 294095c592 Don't allow trailing period in mention
Fixes #249
2022-12-23 01:47:00 -07:00
Andrew Godwin e066641556 Accept emoji using nameMap 2022-12-22 17:19:12 +00: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 79fd800a78 Accept objects with contentMap only 2022-12-22 05:29:49 +00:00
Andrew Godwin 92305ef515 Fix hashtag tests 2022-12-20 14:28:41 +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
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 af3142ac3a
Basic Emoji suppport (#157) 2022-12-15 00:50:54 -07:00
Andrew Godwin 35a45f1c55 A few more fixes and a bad test 2022-12-12 11:56:49 -07:00
Michael Manfre 64cea557be
Collapse linkify mentions (#123) 2022-12-05 21:44:26 -07:00
Andrew Godwin 5b82c76def Shorten mention names when linkified
Fixes #121
2022-12-05 20:26:21 -07:00
Andrew Godwin a31f676b46 Policy pages and signup tests.
Fixes #113
2022-12-05 19:24:46 -07:00
Andrew Godwin 9becbb24d4 Fix post tests, don't reply to self 2022-12-04 21:30:18 -07:00
Andrew Godwin 6291fa0f5c Fix mentions in replies/capitalisation 2022-12-04 20:23:02 -07:00
Andrew Godwin 8139ccffdb Fix hashtag extraction 2022-11-29 09:44:37 -07:00
Michael Manfre fb8f2d1098
Hashtags 2022-11-28 21:41:36 -07:00
Michael Manfre 6c7ddedd34
Post editing 2022-11-27 11:09:46 -07:00
Michael Manfre 849c221aee
Local-only posting 2022-11-26 10:09:31 -07:00
Andrew Godwin 63ab492439 Fix mentions at the start of posts 2022-11-21 22:17:22 -07:00
Andrew Godwin 53d9452917 Outgoing mentions mostly work (exc. cc followers) 2022-11-21 21:18:13 -07:00
Andrew Godwin a80e0f117a Mentionify tests and some fixtures 2022-11-21 20:25:00 -07:00
Andrew Godwin 0d1e09fbcd Refactor almost all tests into /tests/ 2022-11-21 20:10:01 -07:00