* fix css class
* Remember remote profile (#807)
* Revert to @wordpress/scripts@27
* Remember users
* whitespace
* buncha class should be className
* render -> createRoot
* build
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* improved some CSS
* show "remember" checkbox only for the remote-reply overlay
* formatting
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
* add extra fields settings
* add settings
* add settings link
* allow users to only edit their extra fields
* use nopaging instead of posts_per_page
thanks @mattwiebe
* load filters only on admin page and remove the view actions
* author should not be editable
* some improvements and extra informations
* description
* use nopaging instead
* add blog url
* formatting
* formatting
* some cosmetics
* return attachments
* formatting
* formatting
* add default extra fields
* remove unused migration
* better defaults handling
* use a filter to be able to unhook/replace default extra fields
* should fix#810
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
* add follower count to "At a glance" dashboard widget
* add `number_format_i18n` function
* add decimal_point support
and load only on dashboard
* Update includes/class-admin.php
Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
* Update includes/class-admin.php
Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
* Update includes/class-admin.php
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
* added changes suggested by @jeherve
* add `get_plugin_version()` to all enqueues
---------
Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
* Notifications: introduce general class and use it for new follows
Also send stuff via Jetpack
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* improve lemmy compatibility
* simplify code
* fix tests
* use string instead of array
* use `actors` instead of `users`
* optimize ID generation
* update ID
* the #threadiverse needs Announces for everything! :)
* change to full Announce Object
* fix indents
* Factory::get_transformer() may return a WP_Error instance
* Fix templates
* PHPDoc
* "Fix" conneg (for posts, at least)
* (Hopefully) fix conneg for comments, too
* Ugly, but works?
* Fix outboxes, collections
* Clean up a bit
* Use Factory
* Remove outdated `use`
* Use Transformer\Factory instead of Transformer\Post
* "Fix" _deprecated_function() call
* Remove superfluous transformer check
* Remove transformer check
* Call Transformer::get_transformer() only once per request
* PHPDoc
* this should be fine
a failing transformer is very unlikely because there are a lot of checks before `is_singular` or `is_comment` is valid.
* no longer used
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* simplify code
* show limited profile informations
* exclude application user
* use actor instead of user
* change JS
* use Application instead of Application_User
* re-add use
* add summary
* Improves comment intent
* remove limited actor json in favour of the application user
---------
Co-authored-by: Django Doucet <mediaformat.ux@gmail.com>
* Add function to transform outgoing embed/iframe to simple url
* Fix descriptions and code style
* filter content for core/embed blocks
* some re-arranges
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* Comment reply federation: support `is_single_user` sites
* Use the `activitypub` capability
* Use `publish_posts`
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* No need to convert to Blog User, happens implicitly
* Other cap instance, update comment
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* Federated replies: improved UX for understanding that your reply will federate
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* Use an ActivityPub capability to better enable/disable ActivityPub support
* split PRs
* remove test hook
* do not run migrations for new installs
* fix unit tests
* fix unit tests
* remove abandoned schedule!
* fix migration class
* fix order
* restructuring
* remove follower migration
* do not yet remove legacy followers
* remove blog-user changes
* use a const for the version number
* add user tests and fix old ones
* use a more generic async migrator
* optimized test
* nicer default handling!
* use attachment based on the object type
* fix typo
* C&P issue
* update settings
* add default post format
* mixed up `post_format` with `object_type`
* use h2 instead of strong
* add theme support for `post-formats`
if using that feature for ActivityPub
* use Note instead of `image`, `video` and `gallery`
* add `alt` support for images
fix#94
* set type to `Note` if post-type has no title support
* better check
* hide "Post content" when WordPress-Post-Format is selected
* add ACTIVITYPUB_DEFAULT_OBJECT_TYPE const
* move some code
* use note as default
* fix some times broken reply context
* revert changes
* add a filter to finally verify if an activity should be send or not
* better local comment handling
do not federate local only comments (fix#652) and hide "reply" link for federated comments
* show JSON only for comments that should be federated!
* fix parent_comment handling
* show external id if exists
* disable "edit comments" for federated comments
* some more doc
* added tests
* fix#658
* allow custom reply link!
* some restructurings
* this will be only a minor release
* version bump
* mark WordPress object as federated
* fix content filter issue!
fixes https://wordpress.org/support/topic/yasr-ratings-appear-on-comments-on-mastodon/
* add custom filter
thanks @janboddez for the idea https://github.com/Automattic/wordpress-activitypub/pull/645#issuecomment-1898820529
* optimize code a bit
* consts to enable/disable incoming/outgoing interactions
see https://wordpress.org/support/topic/how-to-suppress-user-comments-from-feed/
* rename state
* cleanup federation check
* fix markdown
* better handling of Create/Update/Delete
* update check
* remove redundant property definitions
* Add redused context for actors.
* Add classes to construct Moblizon compatible events
* Bind the context to the activitypub object
- change the propertyname which stores the json-ld context from context to _context, because context is already reserved in the ActivityStreams vocabulary.
- cleanup currently unused code
* fix phpcs
* Remove PostalAddress object: it's enough (at least atm) to directly write the array in transformers.
* Remove _context property from ActivityPub objects in favour of getter function get_json_ld_context()
* fix unit tests: ActivityPub Activity objects have a custom getter for the JsonLD context
* fix phpcs
* fix unit-tests to also support php5.6
* fix phpcs
* add param include_json_ld_context to to_array function
This allows to not set the @context in the resulting array.
* propagate the param include_json_ld_context to nested calls of to_array.
* fix phpcs
* Nested AcitivityPub objects: never build context in inner items in to_array function
* fix: param of set_address may also be an array
* fix typo in comment
* always prefix json-ld context with json-ld and move event class to sub-namespace
* fix usage of reserved object keyword
seems it should not be used as a namespace either
* Merge commit 'b2271cda6b857f879e0abd4f3c6683642d725267' into add/event-objects
* Fix calling non-static function as static
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* Partly fix Json-LD contexts in collections
* Update includes/activity/class-base-object.php
* this is implicit
We already set the correct user with `$transformer->change_wp_user_id( $user_id );` so the Actor will be generated properly. We can change the behaviour, but we should not use both.
* this change prevents the Activity to re-use Object vars
this should stay as is, because it pre-fills the Activity with data (for example cc and to) and it will no longer be done with your change.
It is on purpose that it first sets the object and then replaces it with the URI.
See: https://github.com/Automattic/wordpress-activitypub/blob/master/includes/activity/class-activity.php#L195
* add `$include_json_ld_context` support to `to_json`
* disable some more contexts
* remove whitespace
* Add php-comment for 7ed17c042a
* Fix JSON-LD context for ActivityPub objects: child classes may override it.
* coding standards
* call folder/namespace `Extended_Object`
to be consistent with folder names in singular
* fix: unnessesary nesting of extended-objects
* remove license
I hope this is fine, to have the complete plugin under the MIT @Menrath ?!?
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>