* typo in phpdoc
* add first draft for adding replies collections to posts and comments
* refactoring
* Fix php CodeSniffer violations
* fix typo in php comment
* add draft for testing replies
* replies: test with own comment
* fix basic test for replies collection
* Restrict 'type' parameter for replies to 'post' or 'comment' in REST API
* some cleanups
* prefer ID over URL
* rename to `reply_id` to make clear that it is not the WordPress comment_id
* modularize retrieving of comment link via comment meta
* fix phpcs
* I think we should be more precise with this
and maybe there are other fallbacks coming
---------
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
* add basic reply context support
* UX improvements
* remove unused style file
* built
* Add bookmarklet!
* add build
* small UX tweaks
* add toolbox box
* improved text
* optimized block filter
* add in-reply-to to activity
* refactor to add inboxes using filters
and retrieve/add inboxes of `in-reply-to` links
* renamings
* plugins do not like slashed IDs
* rename to match new get param
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.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
* 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>
* init
* save source id
* fix delete and add improve undo
* test new functions
* add support for threaded comments
* some formatting
* check if URL is no longer available
...and returns either status 410 or 404.
* improve delete handler
* improve update handler
* `object` and `actor` are already required by the inbox endpoint
* fix typo
* simplify queries
* cosmetics
* fix unit tests
* schedule delete comments of deleted actor (#575)
* schedule delete comments of deleted actor
* phpcs
---------
Co-authored-by: Django Doucet <django.doucet@webdevstudios.com>
* move `get_comments_by_actor` to interactions collection
* consistent wording
* implement Tombstone
* fix follow issue
* fix inbox-create
* added missing namespace
* check if field is set
* Fix namespacing issue
* update profile and update interaction
* fields are already validated by inbox
* optimize avatar handling
---------
Co-authored-by: Django <mediaformat.ux@gmail.com>
Co-authored-by: Django Doucet <django.doucet@webdevstudios.com>
* more group friendly settings
* change http code
* Fix Actor-Type
* fix check if value is set
* only ignore null
* better posting_restricted_to_mods handling
* remove user namespace from moderators endpoint
thanks for the feedback @mattwiebe
* Fix some signature and application user issues
* it seems that firefish needs at least an inbox also for application users
* prepare domain change
* use https
* fix PHPDoc
* remove image check
---------
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
* 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