Matthias Pfefferle
6e2656311b
oops
2023-08-10 15:35:10 +02:00
Matthias Pfefferle
1fd0cca185
fix check!
2023-08-10 15:10:07 +02:00
Matthias Pfefferle
fcc9603920
fix typo
2023-08-09 14:15:05 +02:00
Matthias Pfefferle
7de3696c2c
fix @context
2023-08-09 14:13:58 +02:00
Matthias Pfefferle
21afec8586
fix rewrite rule
2023-08-09 13:58:42 +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
48632a7e1b
Add inbox create/react actions ( #387 )
...
This will help us to debug why comments fail
2023-08-02 12:03:32 -05:00
Matthias Pfefferle
062c2af4c6
use 'comment' instead of empty string
2023-08-02 18:19:21 +02:00
Matthias Pfefferle
2ba6f6b8a7
Add upgrade notice
2023-08-02 10:44:56 +02:00
Matthias Pfefferle
3c0ee1aeba
add actions pre running the http GET/POST requests
...
/cc @mattwiebe
2023-08-02 09:00:45 +02:00
Matthias Pfefferle
338c63d3e1
re-add post model ( #386 )
2023-08-01 18:37:16 +02:00
Matthias Pfefferle
3afed5b296
Add/small improvements ( #384 )
...
* flush rewrite rules after migration
* some activity improvements
* equate usernames with and without `.`
Can we equate `@notiz.blog@notiz.blog` with `@notizblog@notiz.blog`?
* better NodeInfo compatibility check
* fix `extract_name_from_uri`
* reset user check
* re-added action
* fix check
2023-07-31 20:15:11 +02:00
Matt Wiebe
02ffa27498
Followers block: don't disable frontend links ( #381 )
...
* only disable follower links in Editor
* allow updating the title
* Enable selectable users based on settings
2023-07-28 10:56:04 -05:00
Matthias Pfefferle
a89a106f21
fall back to preferred username
2023-07-28 15:18:48 +02:00
Matthias Pfefferle
070c9cae85
small improvements
2023-07-28 10:34:10 +02:00
Matthias Pfefferle
835af08848
some small fixes
2023-07-28 10:28:55 +02:00
Matthias Pfefferle
d2af87c259
ignore phpcs warning
2023-07-28 09:50:30 +02:00
Matthias Pfefferle
799280a808
fix default username
2023-07-28 00:47:20 +02:00
Matthias Pfefferle
e12cfa44ac
workaround for special chars ( #379 )
2023-07-28 00:39:22 +02:00
Matt Wiebe
f49e15bfbf
Ensure everything is loaded properly after #376 ( #378 )
...
Also fixes an spl_autoload bug
2023-07-27 19:35:28 +02:00
Matthias Pfefferle
be26a18214
fix issue with where multiple migrations run at the same time ( #377 )
2023-07-27 18:27:41 +02:00
Matthias Pfefferle
c0867de4c0
fix domain change issue on .com ( #374 )
...
This should fix the issue on .com that saves the subdomain.wordpress.com domain to the options table before custom domain is set.
2023-07-27 10:40:29 -05:00
Matthias Pfefferle
d456e86d1a
fix escaping
2023-07-27 17:30:35 +02:00
Matt Wiebe
5b9dadd6fd
Followers Block ( #344 )
...
Introduces a new Followers block. Proudly display your Fediverse followers to the world!
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-07-26 15:05:41 -05:00
Matthias Pfefferle
b25231a355
Remove obsolete code
...
https://github.com/Automattic/wordpress-activitypub/pull/370#issuecomment-1652053210
2023-07-26 19:16:36 +02:00
Jeremy Herve
4ed4143d21
Post class: declare $attachments property
...
This should avoid PHP notices like this one when running PHP 8.2:
PHP Deprecated: Creation of dynamic property Activitypub\Transformer\Post::$attachments is deprecated in /var/www/html/wp-content/plugins/activitypub/includes/transformer/class-post.php on line 249
2023-07-26 12:02:18 +02:00
Matthias Pfefferle
3834288922
fix issue with API endpoint of WordPress.com
2023-07-25 14:34:14 +02:00
Matthias Pfefferle
38cd0b973b
fix ID
2023-07-25 13:47:49 +02:00
Matthias Pfefferle
921ca0c1c6
fix actions
2023-07-25 10:47:59 +02:00
Matthias Pfefferle
36a139698d
update URLs
2023-07-24 13:59:29 +02:00
Matthias Pfefferle
dd1c0a3bb5
Merge pull request #365 from Automattic/fix/cleanup
2023-07-20 23:30:39 +02:00
Matthias Pfefferle
3b88d5e36c
update checks
2023-07-20 15:19:19 +02:00
Matthias Pfefferle
f734e511f7
fix tests
2023-07-20 14:53:34 +02:00
Matthias Pfefferle
44a81742aa
Add settings to en/disable user types (for .org users)
2023-07-20 14:21:32 +02:00
Matthias Pfefferle
98143d9a90
phpcs:ignores
2023-07-20 13:25:28 +02:00
Matthias Pfefferle
c288fbe021
some more checks if a blog is in single user mode or not
2023-07-20 10:57:14 +02:00
Matthias Pfefferle
201ee16f37
fix some issues and re-add "ACTIVITYPUB_SINGLE_USER_MODE" const
2023-07-20 10:12:59 +02:00
Matt Wiebe
3512206d48
phpcbf fixes
2023-07-19 20:39:58 -05:00
Matt Wiebe
cc168c7d40
more lint nom
2023-07-18 15:13:53 -05:00
Matt Wiebe
2596713213
Lint: now clean
2023-07-18 15:02:27 -05:00
Matthias Pfefferle
7b83fddfe0
fix predictability and collision
2023-07-18 14:36:33 +02:00
Matthias Pfefferle
ee3574a8a3
Merge pull request #362 from Automattic/short-code-hardening
...
Hardening the use of a shortcode
2023-07-18 08:31:11 +02:00
Matthias Pfefferle
f4c8264e9a
move function to Shortcode class
2023-07-18 08:20:09 +02:00
Matthias Pfefferle
bf8acf9f51
use wp_rand and change hashtags too
2023-07-18 08:14:28 +02:00
Alex Kirk
ab6aefe446
Add missing output escaping
2023-07-18 06:30:06 +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
0f54ea465e
fix CSRF flaw
2023-07-17 14:37:17 +02:00
Matthias Pfefferle
626616a747
always use host as default username
2023-07-14 11:29:03 +02:00
Matthias Pfefferle
5ae978a8bc
user_id
could be an int and meta always returns strings
...
remove strict comparison in this case and add tests to verify the correct behaviour
2023-07-13 10:35:15 +02:00