Commit graph

571 commits

Author SHA1 Message Date
Alex Kirk
6b8fb5af0c Fix accessing post properties 2023-01-27 14:28:56 +01:00
Matthias Pfefferle
934ef868da
Merge pull request #261 from pfefferle/hashtags-protect-tags 2023-01-27 12:43:59 +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
22e0ddc134 attempt to resolve backwards compatibility issues 2023-01-24 13:55:00 +08:00
Matthew Exon
a9a5b112b0 make filter function static 2023-01-24 13:40:28 +08: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
bd8906638f
Merge pull request #250 from toolstack/switch-to-shortcodes
Switch to shortcodes
2023-01-23 22:24:14 +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
718bd78cf4 typos 2023-01-23 21:09:25 +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
092a6bd3ca coding standards 2023-01-23 20:31:38 +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
Matthias Pfefferle
aec21a489c coding standards 2023-01-23 19:43:34 +01:00
Matthias Pfefferle
16b52c0940 run also on PR 2023-01-23 19:41:30 +01:00
Matthias Pfefferle
5eac4c725e
run on pull request 2023-01-23 19:38:00 +01:00
Greg
71f3a47589 Converted shortcode class to static.
And added options for shortlink/permalink type.
2023-01-23 11:59:13 -05:00
Matthias Pfefferle
efa62ac4cb
Add missing text domain 2023-01-23 09:37:40 +01:00
Greg
3a82891948 Minor cleanups. 2023-01-22 11:27:13 -05:00
Greg
740a73b00f Add size attribute to the image shortcode. 2023-01-22 01:25:50 -05:00
Greg
b5fa16b464 Move the shortcodes to their own class. 2023-01-22 01:13:46 -05:00
Greg Ross
621911d1bf
Merge branch 'pfefferle:master' into switch-to-shortcodes 2023-01-22 00:36:06 -05:00
Matthias Pfefferle
0d255d219b change priority
because of #182
2023-01-16 20:28:45 +01:00
Matthias Pfefferle
57c33e5078 Merge branch 'master' of https://github.com/pfefferle/wordpress-activitypub 2023-01-16 20:23:12 +01:00
Matthias Pfefferle
f412e83f0f hashtag support is experimental 2023-01-16 20:23:05 +01:00
Matthias Pfefferle
0498433ce7
Merge pull request #256 from toolstack/fix-rewrite-rules
Move the activitypub endpoint rule to the main rewrite addition function
2023-01-16 20:17:25 +01:00
Matthias Pfefferle
3dfdf2ac0a Use a single page to explain all topics (glossar) 2023-01-16 20:12:14 +01:00
Greg
47bd6eb3b4 Move the activitypub endpoint rule to the main rewrite addition function.
This is for two reasons:
- No need to add the endpoint every time the plugin loads.
- The old code didn't flush the rewrite rules, making the endpoint non-functional until something did (like the user saving the permalink settings)
2023-01-16 13:19:26 -05:00
Greg
bc8e46e121 Fix shortcode output. 2023-01-16 12:51:18 -05:00
Greg
4a17bb4ea7 Separate the shortcode upgrade function and call it in the settings. 2023-01-16 10:27:27 -05:00
Greg
caea1ecbed Make sure we have a post before using it to set class variables with. 2023-01-16 10:26:38 -05:00
Matthias Pfefferle
2f0dbde2a4 fix phpcs issues 2023-01-16 15:28:10 +01:00
Matthias Pfefferle
5118f00a1e
Merge pull request #247 from toolstack/fix-the-excerpt
Make the excerpt code actually crop the excerpt at 400 characters.
2023-01-16 15:04:47 +01:00
Matthias Pfefferle
80850a590b
Merge pull request #251 from toolstack/notice-space 2023-01-14 07:29:39 +01:00
Greg
e4eda45e9f Give the notice boxes some margin so they have some space. 2023-01-13 20:17:51 -05:00