Commit graph

278 commits

Author SHA1 Message Date
Django Doucet
2e72e93cbd remove extra curly bracket 2023-02-04 15:37:09 -07:00
Django Doucet
627e5a9c0c Merge branch 'threaded-comments' into Comments 2023-02-04 15:35:01 -07:00
Django
9cab6248e9
Merge pull request #4 from mexon/threaded-comments
Threaded comments
2023-01-29 22:07:32 -07:00
Django Doucet
f7fad1b118 phpcbf 2023-01-29 21:52:19 -07:00
Django Doucet
44d05351eb extract mentions from comment_content 2023-01-29 21:44:52 -07:00
Django Doucet
f943de1e79 remove type and mention meta from comment filters 2023-01-29 21:44:15 -07:00
Django Doucet
aca5e273fe update post meta canonical 2023-01-29 20:23:51 -07:00
Django Doucet
c653575594 Remove migrate code 2023-01-29 20:22:48 -07:00
Django Doucet
80901b5b65 update js to new file 2023-01-29 17:29:45 -07:00
Django Doucet
f9c0edc681 Merge branch 'master' into Comments 2023-01-28 12:50:07 -07:00
Alex Kirk
7e3a5f4e68 Handle double protect 2023-01-27 17:23:25 +01:00
Alex Kirk
6ea46c5024 Protect cdata 2023-01-27 16:59:15 +01:00
Alex Kirk
e7894f4c4a Also protect <pre> 2023-01-27 16:55:52 +01:00
Alex Kirk
cbfe6ea431 Protect code HTML 2023-01-27 16:50:04 +01:00
Alex Kirk
3706e61842 Revert adding an argument 2023-01-27 15:48:29 +01:00
Alex Kirk
840d144327 Avoid replacing mentions inside links 2023-01-27 15:48:29 +01:00
Alex Kirk
b3e71ff803 Short-circuit well-known example domains 2023-01-27 15:48:28 +01:00
Alex Kirk
3db9489b5c phpcs 2023-01-27 15:48:28 +01:00
Alex Kirk
8391e713c9 Cache more metadata and webfinger results 2023-01-27 15:48:28 +01:00
Alex Kirk
7d598d92a8 Revert erroneous changes 2023-01-27 15:48:28 +01:00
Alex Kirk
0925405430 Fix missing id 2023-01-27 15:48:28 +01:00
Alex Kirk
483e0a85b2 Extract mentions from the unmodified post content. 2023-01-27 15:48:28 +01:00
Alex Kirk
99b316db34 Rework inboxes for cc 2023-01-27 15:48:28 +01:00
Alex Kirk
05575fe6e7 Add test for a normal dispatch activity 2023-01-27 15:48:28 +01:00
Alex Kirk
4d05d3710b Ensure more metadata 2023-01-27 15:48:28 +01:00
Alex Kirk
e065880085 Add ActivityPub mentions 2023-01-27 15:48:28 +01:00
Alex Kirk
7ebb89e92e phpcs lint fixes 2023-01-27 15:48:28 +01:00
Alex Kirk
b5c4f473de Start adding support for outgoing mentions 2023-01-27 15:48:28 +01:00
Alex Kirk
6b8fb5af0c Fix accessing post properties 2023-01-27 14:28:56 +01:00
Alex Kirk
32f5bec23a Protect tags from being broken 2023-01-27 12:13:41 +01:00
Matthias Pfefferle
dbaddd9189 Simplified and optimized code
based on the Shortcode changes
2023-01-27 10:21:51 +01:00
Matthias Pfefferle
5878a12c83 remove HTML allow list 2023-01-24 11:45:37 +01:00
Matthias Pfefferle
68955b92db optimized HTML and texts 2023-01-24 11:45:17 +01:00
Matthew Exon
85ca37aa1d fix code smells 2023-01-24 13:40:28 +08:00
Matthew Exon
7fa58cf26c add first unit tests for class inbox 2023-01-24 13:23:23 +08:00
Matthew Exon
8db9be5c2e remove debugging log line 2023-01-24 11:10:01 +08:00
Matthew Exon
6a906e5fe2 refactor support for threaded comments from ActivityPub 2023-01-24 11:09:27 +08:00
Matthew Exon
f1f3c3165d support threaded comments from ActivityPub 2023-01-24 11:07:48 +08:00
Matthias Pfefferle
281ed2a8c2 remove old shortcode code 2023-01-23 23:51:27 +01:00
Matthias Pfefferle
e1df129355 simplify inline help a bit 2023-01-23 22:22:22 +01:00
Matthias Pfefferle
7be74c1837 fix upgrade call 2023-01-23 21:24:54 +01:00
Matthias Pfefferle
a55dc90379 fix length 2023-01-23 21:13:50 +01:00
Matthias Pfefferle
4d75ade22b strong is not supported 2023-01-23 21:08:59 +01:00
Matthias Pfefferle
c93f02615d always escape output 2023-01-23 20:59:39 +01:00
Matthias Pfefferle
fe4e0961c8 I would keep it simple for now 2023-01-23 20:47:02 +01:00
Matthias Pfefferle
cb1c26a365 use static method to upgrade post content to shortcodes 2023-01-23 20:31:14 +01:00
Matthias Pfefferle
d4b88f228d mastodon sadly does not support target on links
See https://github.com/mastodon/mastodon/blob/main/lib/sanitize_ext/sanitize_config.rb#L77
2023-01-23 20:24:03 +01:00
Matthias Pfefferle
b458cc6b88 coding standard 2023-01-23 20:13:56 +01:00
Matthias Pfefferle
3666f89f6e with shortcode_atts there is no need to check if attr is set 2023-01-23 20:11:18 +01:00
Matthias Pfefferle
75cc35c66e I think it is enough to check if $post or $post_id is set 2023-01-23 20:08:06 +01:00