Kan-Ru Chen
a47c9cd7ae
replace excerpt_more
with custom filter activitypub_excerpt_more
for better consistency ( #610 )
2023-12-16 07:36:45 +01:00
Ulrich Kiermayr
9d5bd8c220
More reliable way to get author and autorurl ( #546 )
...
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2023-11-06 17:10:54 -06:00
Matt Wiebe
33b61ca2b9
Shortcodes: only register when needed ( #526 )
2023-10-19 14:46:31 -05:00
Matt Wiebe
ff58070a5e
Revert "Shortcodes: only register when needed"
...
This reverts commit c4daffe5c6
.
2023-10-18 16:21:20 -05:00
Matt Wiebe
c4daffe5c6
Shortcodes: only register when needed
2023-10-18 16:20:06 -05:00
Matthias Pfefferle
55e39a0b24
fix https://github.com/Automattic/wordpress-activitypub/issues/399#issuecomment-1725167874
2023-09-21 10:49:19 +02:00
Matthias Pfefferle
8dcbe0c6fd
fix Secops issues ( #411 )
2023-09-05 21:03:25 +02:00
Dennis
26ad8975d7
Normalize Hashtag behavior in Mastodon Apps ( #407 )
...
* Update class-hashtag.php
* Update class-shortcodes.php
* fix unit tests
* missed two tests
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-08-31 15:04:17 +02:00
Matthias Pfefferle
049046be70
update endpoints ( #390 )
...
* add collection endpoint
* show featured posts
* more consistant wording
* backwards compatibility with php7.x
* compatibility with php5.6
* use ACTIVITYPUB_AUTHORIZED_FETCH instead
because the ACTIVITYPUB_SECURE_MODE could be misinterpreted with disabling the security mechanisms completely.
* the blog user follows all authors of a blog
if not in single_user mode
* phpdoc
* adding changes based on feedback from @jeherve
* global namespace
* better hashtag handling
should also fix #373 #239
thanks @jeherve for help and feedback!
* fix workflow
2023-08-09 13:07:30 +02:00
Matt Wiebe
3512206d48
phpcbf fixes
2023-07-19 20:39:58 -05:00
Matthias Pfefferle
f4c8264e9a
move function to Shortcode class
2023-07-18 08:20:09 +02:00
Matthias Pfefferle
964ceee869
fix tests
2023-07-17 17:23:13 +02:00
Matthias Pfefferle
d7e9d54063
Checks if item (WP_Post) is "public", a supported post type and not password protected.
2023-07-17 15:25:30 +02:00
Matthias Pfefferle
27dd8217e8
Merge branch 'master' into fix/sanitization
2023-05-23 19:20:23 +02:00
Matthias Pfefferle
d91eaeae72
phpdoc
2023-05-23 11:26:12 +02:00
Matthias Pfefferle
3d1a0af6cb
moved strip style/script
2023-05-23 11:13:17 +02:00
Matthias Pfefferle
677d507fe9
Revorked "sanitize output"
...
This reverts commit 77873d12b3
.
2023-05-23 11:10:05 +02:00
Matthias Pfefferle
77873d12b3
sanitize output
2023-05-11 14:20:35 +02:00
Matthias Pfefferle
17b66cb23d
implement cleanup_followers
and update_followers
2023-05-10 14:18:56 +02:00
Matthias Pfefferle
2274bd0074
check if post is password protected
2023-02-27 08:15:02 +01:00
Matthias Pfefferle
72f12de96a
remove scripts later in the queue
2023-02-20 21:18:03 +01:00
Matthias Pfefferle
73ae7a5d75
fix content creation
...
and added tests
2023-02-20 18:08:10 +01:00
Matthias Pfefferle
b0149739fa
remove line breaks
2023-02-20 08:58:12 +01:00
Matthias Pfefferle
873066115d
strip style and script elements
2023-02-20 08:55:23 +01:00
Matthias Pfefferle
bc8cb19c5d
add an option to disable content filters
2023-01-31 18:43:11 +01:00
Matthias Pfefferle
a55dc90379
fix length
2023-01-23 21:13:50 +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
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
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
Greg
71f3a47589
Converted shortcode class to static.
...
And added options for shortlink/permalink type.
2023-01-23 11:59:13 -05: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