Commit graph

584 commits

Author SHA1 Message Date
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
Greg
bf6cf24b17 Add length to excerpt shortcode. 2023-01-13 16:11:52 -05:00
Greg
e7d3cf9d68 Convert template codes to shortcodes.
As well as add new shortcodes for:

[ap_hashcats] - The post's categories as hashtags
[ap_image] - The URL for the post's featured image, full size
[ap_thumbnail] - The URL for the post's featured image thumbnail size
[ap_author] - The author's name
[ap_authorurl] - The URL to the author's profile page
[ap_date] - The post's date
[ap_time] - The post's time
[ap_datetime] - The post's date/time formated as "date @ time"
[ap_blogurl] - The URL to the site
[ap_blogname] - The name of the site
[ap_blogdesc] - The description of the site
2023-01-13 15:47:13 -05:00
Greg
27aeaeb4e4 Fix incorrect setting of target length and spelling mistake. 2023-01-13 11:02:16 -05:00
Matthias Pfefferle
5dac683c48 switch to constants to define pathes 2023-01-13 09:19:02 +01:00
Matthias Pfefferle
1a2885c17a add changelog 2023-01-13 09:18:25 +01:00
Matthias Pfefferle
c7044f7ede
Merge pull request #248 from mexon/configure-number-of-images
configuration item for number of images to attach
2023-01-13 08:58:45 +01:00
Matthias Pfefferle
006b3eef3e use number input field instead of textarea 2023-01-13 08:56:38 +01:00
Matthias Pfefferle
c06a7d44cf re-added max_images check
props @mexon
2023-01-12 22:21:48 +01:00
Matthias Pfefferle
6992fbbe22
simplified ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS 2023-01-12 21:55:33 +01:00
Matthew Exon
1e7e6bba28 standardise and improve name of attachment setting 2023-01-12 21:29:21 +01:00
Matthias Pfefferle
7d71ac07e1
Merge pull request #231 from pfefferle/security_privacy
Security & privacy related fixes
2023-01-12 16:36:41 +01:00
Matthew Exon
d1765b56dd configuration item for number of images to attach 2023-01-07 17:58:50 +01:00
Greg
43f347bc7c Make the excerpt code actually crop the excerpt at 400 characters.
The existing implementation crops at words and may return very short strings based upon filters, or very long strings based upon user inputted excerpts.
Make sure we never return a excerpt longer than we expect.
2023-01-06 20:04:31 -05:00
Matthias Pfefferle
195727bc78 update readme 2022-12-27 20:44:36 +01:00
Matthias Pfefferle
7ee91f1ab1 remove hooks 2022-12-27 17:29:34 +01:00
Matthias Pfefferle
8a5f575803 update readme 2022-12-27 17:26:33 +01:00
Matthias Pfefferle
6ecda2b869 fix composer indents 2022-12-27 17:01:10 +01:00
Matthias Pfefferle
6f3b7427e0 added local test env using docker 2022-12-27 16:59:04 +01:00
Matthias Pfefferle
a548d1fe0f get_post_meta need the post ID 2022-12-27 16:58:49 +01:00
Matthias Pfefferle
eea3f582d6 add hooks to the test 2022-12-27 16:16:22 +01:00
Matthias Pfefferle
4b97d412e0 be sure to register hooks 2022-12-27 16:14:19 +01:00
Matthias Pfefferle
b984319f8f hooks will be ignored 2022-12-27 16:06:41 +01:00
Matthias Pfefferle
10a8a2de1d use unique meta 2022-12-27 16:01:59 +01:00
Matthias Pfefferle
6878b86922 fix test 2022-12-27 15:56:46 +01:00
Matthias Pfefferle
c221daef86 store permalink in post meta for trashed posts
this should quick fix #16 without changing the permalink structure
2022-12-27 15:48:14 +01:00
Matthias Pfefferle
bf0b51ceb3 only save public activities
first step to #72
2022-12-27 14:43:37 +01:00
Matthias Pfefferle
a27a4fc234 remove empty trim
fix #136
2022-12-27 14:17:31 +01:00
Matthias Pfefferle
9acd0732d4 hide users that can not publish posts
fixes #230
2022-12-27 14:03:10 +01:00
Matthias Pfefferle
45b6e63f32 fix phpcs issues 2022-12-23 13:17:12 +01:00
Matthias Pfefferle
6b15d8d158 run phpcs also on pull_requests 2022-12-23 12:14:48 +01:00
Matthias Pfefferle
733bc88faf fix phpcs issues 2022-12-23 12:12:12 +01:00
Matthias Pfefferle
8f6ad230ce Merge branch 'Comments' of https://github.com/mediaformat/wordpress-activitypub into pr/142 2022-12-23 12:10:51 +01:00
Matthias Pfefferle
ae54805cf0 fix phpcs issues 2022-12-23 12:10:42 +01:00
Matthias Pfefferle
2ca6bdc487
remove trailing spaces 2022-12-23 12:04:25 +01:00
Matthias Pfefferle
f1dfd52329
Merge branch 'master' into Comments 2022-12-23 12:03:13 +01:00
Django Doucet
093bc3c88b fix comparison 2022-12-19 14:16:56 -07:00
Django Doucet
b04538a2ab remove comment_type 2022-12-19 14:16:56 -07:00