Matthias Pfefferle
b8c86915b5
add missing phpdoc
2023-04-26 17:24:27 +02:00
Matthias Pfefferle
0ee1266c30
add sanitize callbacks
2023-04-26 17:23:28 +02:00
Matthias Pfefferle
4a4a06de37
get_follower requires user_id check
2023-04-26 17:22:44 +02:00
Jeremy Herve
bd75603fc7
Remove comment about Jetpack's Photon
2023-04-26 10:47:49 +02:00
Jeremy Herve
e16e119e6c
Switch to general actions and filter
...
As a result, we will not modify the images within the ActivityPub plugin, but the hooks will allow third-parties to do it on their end.
See discussion: https://github.com/pfefferle/wordpress-activitypub/pull/309#issuecomment-1521488186
2023-04-26 10:45:35 +02:00
Matthias Pfefferle
c70080a0c6
Merge pull request #312 from akirk/protect-img-tags
...
Protect img tags from replacing mentions
2023-04-26 10:11:15 +02:00
Alex Kirk
98619dc319
Protect img tags from replacing mentions
2023-04-26 10:08:22 +02:00
Matthias Pfefferle
ca646588d2
ignore www
subdomain when comparing hosts
...
fix #290
2023-04-25 20:44:54 +02:00
Matthias Pfefferle
d1f6973d9b
re-add mention functionality
...
not perfect but works as expected
2023-04-25 11:59:08 +02:00
Jeremy Herve
da63763ddc
Compat: only disable Jetpack's image CDN via filter
...
This follows the discussion in #307 .
1. Do not disable Jetpack's image CDN in ActivityPub requests by default.
2. Add a new filter, activitypub_images_use_jetpack_image_cdn, that site owners can use to disable Jetpack's Image CDN if they'd like to.
3. Extract image getting into its own method for improved readability.
2023-04-25 10:54:21 +02:00
Matthias Pfefferle
764a091046
fix unit tests
2023-04-25 09:31:28 +02:00
Matthias Pfefferle
377fc94161
php doc
2023-04-25 09:09:07 +02:00
Matthias Pfefferle
84a82c2ac4
added follower model
2023-04-24 20:46:51 +02:00
Jeremy Herve
56d2b7e8be
Update to handle both old and new versions of Jetpack
...
See https://github.com/Automattic/jetpack/pull/30050/
2023-04-24 09:51:08 +02:00
Jeremy Herve
3f4c44db05
Compatibility: do not serve images with Jetpack CDN when active
...
When Jetpack's image CDN is active, core calls to retrieve images return an image served by the CDN.
Since Fediverse instances usually fetch and cache the data themselves, we do not need to use the CDN for those images when returned by the ActivityPub plugin. In fact, we really do not want that to happen, as Fediverse instances may get errors when trying to fetch images from the CDN (they may get blocked / rate-limited / ...).
Let's hook into Jetpack's CDN to avoid that.
2023-04-24 09:51:08 +02:00
Matthias Pfefferle
47dc2f72d1
fix "bulk replace" issue
2023-04-24 09:49:06 +02:00
Matthias Pfefferle
77415ef510
Remove "(Fediverse)"
2023-04-23 22:57:03 +02:00
Matthias Pfefferle
28c077e422
Add URL
2023-04-23 22:56:45 +02:00
Django Doucet
b641cb03f3
fix phpcs
2023-04-21 16:16:52 -06:00
Django Doucet
023ba25f38
PHPDoc
2023-04-21 15:27:02 -06:00
Django Doucet
f396c6da4e
Optimize verification code and returns WP_Errors
2023-04-21 15:25:39 -06:00
Alex Kirk
4ed4d06fd5
Add comment
2023-04-21 17:41:04 +02:00
Django Doucet
7dbce74a96
ensure signature block has algorithm
2023-04-21 09:36:17 -06:00
Alex Kirk
45ae73bb06
Add Vary header
2023-04-21 17:20:48 +02:00
Django Doucet
1631f1c7dc
fix rest api endpoint
2023-04-21 09:18:24 -06:00
Django Doucet
d23ff46073
fix merge omission
2023-04-21 08:45:10 -06:00
Matthias Pfefferle
ef536cc977
verify requests
2023-04-21 16:40:46 +02:00
Matthias Pfefferle
ebc9b6ac8d
naming improvements
2023-04-21 16:34:47 +02:00
Matthias Pfefferle
3c86e94d9a
remove followers
2023-04-21 16:25:15 +02:00
Matthias Pfefferle
32194c31df
phpDoc
2023-04-21 15:57:49 +02:00
Matthias Pfefferle
734750b796
use collection also for rest endpoints
2023-04-21 15:57:41 +02:00
Matthias Pfefferle
75e9b1e281
deprecate old functions
2023-04-21 15:57:21 +02:00
Django Doucet
036ee3180b
move signature verification to callback
2023-04-21 07:53:12 -06:00
Django Doucet
bb21803b18
Add Secure mode setting
2023-04-21 07:48:19 -06:00
Django Doucet
038bf25b2e
remove guessing function
2023-04-21 07:48:19 -06:00
Matthias Pfefferle
7769d76849
use a taxonomy to save the list of followers
2023-04-21 14:56:22 +02:00
Matthias Pfefferle
a8b963ec26
some code cleanups
2023-04-21 08:51:38 +02:00
Matthias Pfefferle
5faddba511
this function should not work without $request
2023-04-21 08:51:25 +02:00
Matthias Pfefferle
804ef25822
count only users that can publish_posts
2023-04-21 08:42:51 +02:00
Matthias Pfefferle
5a6f8aff02
Merge branch 'master' into signature_verification
2023-04-20 22:23:15 +02:00
Matthias Pfefferle
eeb3ba2952
remove unused "use function"
2023-04-20 15:32:38 +02:00
Matthias Pfefferle
c32eec2390
some code cleanup
2023-04-20 15:22:11 +02:00
Matthias Pfefferle
cf426ab8ab
Merge pull request #265 from pfefferle/optimize-publish
...
optimize publishing
2023-04-20 15:04:34 +02:00
Django Doucet
590c990e21
phpcs
2023-04-14 23:59:04 -06:00
Django Doucet
30d78417d8
Fixes key retrieval
2023-04-14 23:53:43 -06:00
Matthias Pfefferle
15adf639a8
Merge pull request #302 from jeherve/fix/warning-webfinger-no-user
2023-04-10 16:41:40 +02:00
Jeremy Herve
643c47dcb7
Webfinger info: avoid PHP warning when user isn't defined
...
This should avoid warnings like this one:
```
PHP Warning: Attempt to read property "user_login" on bool in /var/www/html/wp-content/plugins/activitypub/includes/class-webfinger.php on line 27
```
2023-04-10 13:10:46 +02:00
Django Doucet
e1722cd4d3
Simplify signature_algorithm
2023-04-05 13:25:39 -06:00
Django Doucet
3a0f62b092
phpcs
2023-04-04 20:36:25 -06:00
Django Doucet
9eb903ac15
phpcs compat
2023-04-04 20:33:00 -06:00
Django Doucet
502bf8b5a6
Get actor from key with non-standard uri
2023-04-04 19:58:08 -06:00
Django Doucet
d6169f4bc3
Add content-length header if present in sig headers
2023-04-02 20:38:10 -06:00
Django Doucet
2293c0b3d7
use verify_http_signature in validate_callback
...
rename verify_signature
2023-04-02 16:38:39 -06:00
Django Doucet
90b45438b2
cleanup
2023-04-02 00:30:17 -06:00
Django Doucet
504bbb9999
code style phpcs
2023-04-01 23:59:49 -06:00
Django Doucet
0c7cec3eba
Fix signature parse verification
2023-04-01 10:17:56 -06:00
Sören Wrede
7d11d3e208
Fix documentation and typos.
2023-03-23 08:35:26 +01:00
Edward Ficklin
aed033c03e
nonce verification
2023-03-14 20:47:30 -04:00
Edward Ficklin
8b92e9d47e
escape output
2023-03-14 20:35:14 -04:00
Edward Ficklin
01532692f1
template helper function for displaying fedi bio, if set
2023-03-14 13:36:47 -04:00
Edward Ficklin
3ed96471de
add profile field and save handling for fediverse specific bio
2023-03-14 13:36:12 -04:00
Django Doucet
8f80a70ee5
Merge branch 'master' into signature_verification
2023-03-11 16:12:05 -07:00
Django Doucet
a6b057b69d
Merge branch 'master' into signature_verification
2023-03-11 16:10:29 -07:00
Matthias Pfefferle
c99d25b12e
whitelist more html elements
...
fix #285
2023-03-03 08:56:15 +01:00
Matthias Pfefferle
753f964ce9
fix #286
2023-03-03 08:55:23 +01: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
08ce46a1a4
Merge branch 'master' into optimize-publish
2023-02-20 18:22:17 +01:00
Matthias Pfefferle
21cff7f24b
version bump
2023-02-20 18:17:02 +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
e2c1dc28b5
fix #281
2023-02-16 09:12:01 +01:00
Matthias Pfefferle
92b11a3926
use html version of the link as before
2023-02-08 10:06:22 +01:00
Matthias Pfefferle
c89d8f2265
fix #269
2023-02-02 18:13:21 +01:00
Matthias Pfefferle
70859212d6
fix #196
2023-02-02 08:50:17 +01:00
Matthias Pfefferle
531bdc17b0
fix #266
2023-02-02 08:18:10 +01:00
Matthias Pfefferle
73ae47e377
PHPDoc
2023-02-02 07:24:27 +01:00
Matthias Pfefferle
de32cb7b73
add changes also to the object
2023-02-02 02:36:29 +01:00
Matthias Pfefferle
365d5dd499
fix outbox
2023-02-02 02:35:57 +01:00
Matthias Pfefferle
e52181fd37
fix tests
2023-02-02 02:04:06 +01:00
Matthias Pfefferle
3c84be1691
fix unit tests
2023-02-02 01:50:20 +01:00
Matthias Pfefferle
e015da7f8f
optimize publishing
2023-02-02 01:42:15 +01:00
Matthias Pfefferle
d4b1edcf39
fix update and delete dispatcher
2023-02-01 00:13:55 +01:00
Matthias Pfefferle
bc8cb19c5d
add an option to disable content filters
2023-01-31 18:43:11 +01:00
Matthias Pfefferle
24648d6d74
fix server config
...
See: https://wordpress.org/support/topic/jetpack-conflict-15/
2023-01-31 09:56:48 +01: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
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
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
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
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
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
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
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
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
a548d1fe0f
get_post_meta need the post ID
2022-12-27 16:58:49 +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
9acd0732d4
hide users that can not publish posts
...
fixes #230
2022-12-27 14:03:10 +01:00
Alex Kirk
034ba0554d
Don't access transient when receiving a WP_Error
2022-12-15 11:37:00 +01:00
Matthias Pfefferle
e21806d06f
Merge pull request #217 from akirk/fix-typo
2022-12-11 09:23:00 +01:00
Alex Kirk
7e6fbd60b3
Fix typo
2022-12-11 09:16:50 +01:00
Matthias Pfefferle
bf883418ec
fix #214
...
thanks @mexon
2022-12-10 17:58:24 +01:00
Matthias Pfefferle
9869daffeb
Merge branch 'master' into feature-guidance
2022-12-07 18:03:19 +01:00
Matthias Pfefferle
35b2a9512e
fix phpcs issue
2022-12-06 22:18:14 +01:00
Matthias Pfefferle
d5dac9699a
fix user count
...
props @mediaformat
fix #209
2022-12-06 22:17:06 +01:00
Matthias Pfefferle
6042b7bd44
add missing namespace
2022-12-06 17:38:32 +01:00
Matthias Pfefferle
13ea3f09dd
better wording
2022-12-06 17:20:01 +01:00
Matthias Pfefferle
bb9f9d5776
fix broken namespace
2022-12-06 11:03:33 +01:00
Matthias Pfefferle
2a8cd2a54f
use tab instead of different settings pages
2022-12-06 10:58:32 +01:00
Matthias Pfefferle
07d93e809b
fix phpcs issue
2022-12-05 20:55:13 +01:00
Matthias Pfefferle
c6657d2fa8
move method
to webfinger class
2022-12-05 20:48:07 +01:00
Matthias Pfefferle
d6b7cd0235
Merge branch 'master' into feature-guidance
2022-12-05 20:30:04 +01:00
Matthias Pfefferle
229e1cd6ed
Merge pull request #172 from akirk/add-friends-plugin-support
...
Add a parser to the Friends Plugin
2022-12-05 20:28:53 +01:00
Matthias Pfefferle
03704fb74e
use install thickbox
2022-12-05 20:27:04 +01:00
Matthias Pfefferle
c1e128fbcd
some text improvements
...
props @krafit
2022-12-05 17:45:56 +01:00
Matthias Pfefferle
603199c9e8
add recommended plugins
2022-12-02 18:23:56 +01:00
Alex Kirk
a82dea0685
Add unit test
2022-12-02 12:46:42 +01:00
Matthias Pfefferle
19117323f9
Added some debug data
2022-11-22 00:05:17 +01:00
Eana Hufwe
dacbed6614
Add Custom Post Type support to outbox API
2022-11-19 16:01:16 -08:00
Matthias Pfefferle
6232bddcd7
load only an activitypub settings pages
2022-11-19 13:15:21 +01:00
Matthias Pfefferle
30919b1f7b
be more descriptive
2022-11-15 20:50:56 +01:00
Matthias Pfefferle
2f8579cfe1
use ActivityPub instead of Fediverse
...
to be consistent
2022-11-15 20:49:05 +01:00
Matthias Pfefferle
7f346baf69
remove spec and test links
...
and replace them with support and bug links
2022-11-15 20:37:18 +01:00
Matthias Pfefferle
0a1e5c13f3
fix phpcs issue
2022-11-15 18:24:14 +01:00
Matthias Pfefferle
fba834b15d
add some guidance
...
based on the feedback of users and the suggestion of @akirk
2022-11-15 18:22:08 +01:00
Alex Kirk
3def583269
typo
2022-11-09 07:27:50 -07:00
Alex Kirk
eff60ed5dd
Fix the signature for HTTP GET requests
2022-11-09 07:25:10 -07:00
Alex Kirk
04db99730d
phpcs
2022-11-09 07:17:59 -07:00
Alex Kirk
5f6cf78da1
Add a parser to the Friends Plugin
2022-11-09 07:08:32 -07:00
b3aefc62db
fix webfinger for email identifiers
...
fix #152
2022-05-20 08:49:05 +02:00
Django Doucet
63993b20b9
fix const
2022-03-20 21:12:53 -06:00
Django Doucet
16ae895312
fixes
2022-03-20 20:57:01 -06:00
Django Doucet
1f6e1cf37c
add openss_verify method and openssl_error_string
2022-03-19 20:19:59 -06:00
Django Doucet
99630a58bb
fixes
2022-02-28 19:32:26 -07:00
Django Doucet
86c796090d
Signature Verification with phpseclib3
2022-02-28 16:11:04 -07:00
44c652eba8
phpcs fixes
2022-01-27 13:09:11 +01:00
f677d1a7d4
fix #135
2022-01-17 11:03:30 +01:00
7b262fd613
fix "Follow" issue
...
fix #133
2021-11-17 21:11:34 +01:00
6795d707c8
fix Inbox issue
...
fix `PHP Warning: Undefined variable $user_id in wp-content/plugins/activitypub/includes/rest/class-inbox.php on line 111`
https://github.com/pfefferle/wordpress-activitypub/issues/88#issuecomment-886254210
2021-07-26 09:48:51 +02:00
f4f46fc084
added health checks
2021-07-23 15:46:28 +02:00
b49cc5333c
optimized health check
2021-01-13 23:22:17 +01:00
3dd88fd176
prepare context
for coming features
2021-01-12 12:45:17 +01:00
2646a98b46
added functional shared inbox
2021-01-09 01:26:26 +01:00
fe90988985
fixed outbox
2021-01-09 01:25:49 +01:00
1e7bfc8f9d
JSON representation of blog main page
2021-01-08 17:43:35 +01:00
c797109fd7
consistent API response, GET inbox and filterable follower list
2021-01-05 21:56:38 +01:00
c8d341ba1f
unify query params
2021-01-03 20:40:53 +01:00
46436cb49b
disable flood control
2020-12-28 23:33:26 +01:00
bad4ca2bbd
check for a comment_post_ID
...
this fixes #101
direct messages will be re-added via #95
2020-12-18 17:46:03 +01:00
5d7ad7f4b2
use "pre_option_require_name_email" filter instead of "check_comment_flood"
...
thanks @akirk
2020-12-18 17:36:07 +01:00
e7c0526103
check if it is an explicit "undo -> follow" action
2020-12-18 17:30:17 +01:00
0ac4bb0d8f
fix inconsistent %tags%
placeholder
2020-12-17 22:21:41 +01:00
627100b463
fix follow/unfollow actions
2020-12-17 21:16:09 +01:00
97b4f33a92
Merge branch 'master' of https://github.com/pfefferle/wordpress-activitypub
2020-12-17 18:28:40 +01:00
0fcc57ee04
fix hashtags replacement
2020-12-17 18:24:30 +01:00
Matthias Pfefferle
9250749b8a
Merge pull request #105 from mediaformat/digest-header
...
add digest header
2020-12-17 17:41:58 +01:00
c0033d8819
fix WP coding standard issue
2020-12-17 17:39:35 +01:00
Django Doucet
880073de69
Fix post date
2020-12-17 00:26:59 -05:00
Django Doucet
91f9c1e263
Fix Unfollow action - The type is Undo
2020-12-13 23:40:44 -05:00
Django Doucet
0271b57844
add digest header
2020-12-09 22:23:05 -05:00
Alex Kirk
953cf71994
Filter option in favor of updating the database
2020-10-22 21:29:14 +02:00
53aa974461
do not require email for AP entries
2020-10-09 13:19:17 +02:00
b3d9f8862b
oops
2020-10-01 19:55:16 +02:00
a875b90054
remove blocklist feature in favor of the comment blocklist
2020-09-21 13:20:39 +02:00
fb22aeae71
update to REST API changes (WP 5.5)
2020-09-18 16:36:09 +02:00
edc334a1fb
add prefixes
2020-07-21 09:27:35 +02:00
d260d7c276
add support for custom post content
...
fix #97 #91
2020-07-21 09:23:35 +02:00
2a1cc45124
do not load NodeInfo class if blog is private
2020-05-23 12:34:42 +02:00
827aacc450
check params to prevent PHP warnings
2020-05-23 12:34:11 +02:00
Matthias Pfefferle
be50451636
WordPress coding style
2020-05-19 16:45:50 +02:00
Django Doucet
3c730050b7
remove irrelevent option
2020-05-18 17:36:17 -04:00
Django Doucet
3d573aa140
Only return nodeinfo data if site is public
2020-05-18 17:32:17 -04:00
19a7bddc5f
check case insensitive
2020-05-18 16:46:51 +02:00
5ad36d0027
add default value
2020-05-18 16:46:31 +02:00
41a58ccda5
show inline images
...
fix #77
2020-05-14 23:10:25 +02:00
f9223be5d7
fix some method names
...
and add basic tests
2020-05-14 22:33:09 +02:00
4798b75f37
more chances to support delete
2020-05-14 21:37:59 +02:00
b8feca2d9f
PHPDoc
2020-05-14 21:04:33 +02:00
c24966d683
first try of a delete activity
...
see #16
2020-05-14 18:02:49 +02:00
122461ab6e
escape even more
2020-05-12 20:30:06 +02:00
9945aa7cf8
escape global constants and functions
...
* Add leading \ before function invocation to speed up resolving.
* Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
2020-05-12 19:42:09 +02:00
60ad191fdc
fix follow
2020-05-04 00:06:48 +02:00
95682dbb6d
change default
2020-04-28 10:03:44 +02:00
821120786f
Fix debug log
2020-04-28 10:03:35 +02:00
273787295a
native function invocation
2020-02-22 13:02:58 +01:00
385aac3568
improve request validation and added blacklist check
2020-02-21 11:11:03 +01:00
0d48496768
add blacklist settings
2020-02-21 11:09:31 +01:00
7bcd586eae
fix get_remote_metadata_by_actor
2020-02-21 11:05:17 +01:00
ddabb0a0bf
fix indents
2020-02-11 10:14:21 +01:00
9b894a7d14
use title
instead of titlelink
2020-02-11 10:03:59 +01:00
bgcarlisle
d7a2b9a237
Added new post type: "title and link only"
2020-01-22 15:57:01 +01:00
Matthias Pfefferle
965c8ca804
Merge pull request #83 from BenLubar-PR/authorized-fetch
...
support authorized fetch to avoid having comments from "Anonymous"
2020-01-19 16:22:30 +01:00
Matthias Pfefferle
87aa2e1af1
Merge pull request #82 from BenLubar-PR/title
...
Use the "summary" property for a title as Mastodon does.
2020-01-19 16:21:22 +01:00
Ben Lubar
fbcf2dbabc
support authorized fetch to avoid having comments from "Anonymous"
2020-01-18 12:56:30 -06:00
Ben Lubar
b4a79fd57e
Use the "summary" property for a title as Mastodon does.
2020-01-18 12:38:08 -06:00
Ben Lubar
f387177ebf
Add image alt text to the ActivityStreams attachment property in a format that Mastodon can read.
2020-01-18 12:36:46 -06:00
85db6f2d7e
Automated native_function_invocation fixes
...
`php php-cs-fixer --rules=native_function_invocation fix ./ --allow-risky=yes`
2019-12-01 21:20:26 +01:00
937618101e
disable broken delete activity
2019-11-27 08:25:04 +01:00
be721e851e
fix #73
2019-11-24 21:25:25 +01:00
65034d2a76
refactorings
2019-11-18 20:57:00 +01:00
0152fc39a8
fix accept-header bug
2019-09-30 07:59:19 +02:00
acca7d078c
version bump
2019-09-29 20:05:20 +02:00
55ca69fd22
add all required accept header
2019-09-29 18:23:22 +02:00
0337b78fef
better/simpler accept-header handling
2019-09-29 18:22:59 +02:00
9fd551f07d
add debugging mechanism
2019-09-28 14:17:58 +02:00
2e010c8ad5
Add setting to enable AP for different (public) Post-Types
...
For example PodLove "Episodes".
fixes #65
2019-09-27 15:00:07 +02:00
de62e95102
fix #56
2019-09-27 11:37:15 +02:00
ad691bc488
Merge branch 'master' of https://github.com/pfefferle/wordpress-activitypub
2019-09-27 10:13:03 +02:00
2f5bf1ccc4
explicit use of global functions
2019-09-27 10:12:59 +02:00
Alex Gleason
b266ad0aa1
Fix comments
2019-09-07 21:32:58 -05:00
453acb7329
fixed PHP warnings
2019-08-21 15:06:48 +02:00
2e91ce11de
Moved followers list to user-menu
2019-08-21 10:38:43 +02:00
b6b0743b3f
added admin_email to metadata
...
to be able to "Manage your instance" on https://fediverse.network/manage/
2019-08-20 13:03:06 +02:00
a0d670ed77
another fix
2019-08-18 22:39:34 +02:00
bdd9bd8775
fixed tests
2019-08-18 22:16:59 +02:00
f80f6a791f
new dispatcher class
2019-08-18 21:54:11 +02:00
Armando Lüscher
344d981ce8
Initial proofread
2019-07-28 22:12:11 +02:00
55303bf34c
check if inbox
exists
...
...to prevent warnings
2019-07-26 17:07:43 +02:00
1ab723eb7a
as2
is used by an other plugin
2019-07-26 17:06:53 +02:00
8d91b213e7
fixed inbox problems with pleroma
2019-03-14 23:10:11 +01:00
a0471a9eef
added following endpoint
2019-03-12 22:20:04 +01:00
5a74aa4a4d
simplified "followers" endpoint
2019-03-12 22:19:51 +01:00
7a7ea3350a
fixed default value problem
2019-03-12 22:18:20 +01:00
c5823afc8e
followers list improvements
2019-03-09 01:23:10 +01:00
669d0d6141
fixed pleroma following issue
...
fixed #19
2019-03-09 01:22:49 +01:00
f10921e554
implement #21
2019-03-02 21:10:42 +01:00
e2d708d23c
phpdoc
2019-02-28 19:31:55 +01:00
f0483a1928
only send Activites when ActivityPub is enabled for this post-type
2019-02-28 19:31:22 +01:00
50d068b51a
add WIP OStatus class
2019-02-24 13:01:43 +01:00
a6d97f8ba7
(php)doc
2019-02-24 13:01:28 +01:00
1828c88d73
fixed #30
...
will be released with the next version
2019-02-24 12:27:49 +01:00
4d07955c75
still refactoring
2019-02-24 12:27:26 +01:00
5db2e38719
fixed namespace problems
2019-02-24 12:21:25 +01:00
40b2651b7e
big refactoring to use namespaces for a better code structure
2019-02-24 12:07:41 +01:00
30b939b5a1
show avatars
2019-02-20 21:05:29 +01:00
94ba1666f2
finally fixed backlink in excerpt/summary posts
2019-02-20 20:25:19 +01:00
b209104fdd
finally fixed contact list
2019-02-19 22:43:14 +01:00
b958d5910c
added setting to enable/disable hashtags /cc @chrisaldrich
2019-02-17 21:27:20 +01:00
13bbfe0501
fix #23
2019-02-17 21:10:53 +01:00
0fa7fc62f7
fix #25
2019-02-17 21:09:24 +01:00
6344e10ab6
changed default value
2019-02-04 13:40:23 +01:00
ebe2d434c6
better json encoding
2019-02-03 00:44:01 +01:00
fdad48ef74
0.3.0
2019-02-02 23:56:05 +01:00
e9d6f11889
public functions to get/count followers
...
for a better use in themes/other plugins
2019-01-22 21:16:37 +01:00
03f6da019d
basic hashtag support
...
see #21 #20
2019-01-22 20:51:22 +01:00
e8d2508f5d
nicer profile and customizable backlink
...
* customizable backlink URL #18
* fixes #12
2019-01-16 21:50:45 +01:00