Commit graph

12 commits

Author SHA1 Message Date
Matt Wiebe
d173690d7b
Generate comment IDs for federation from home_url (#739)
* Generate comment IDs for federation from `home_url`

`site_url` is used for the WP install, not for the frontend URLs

* fix other `site_url` uses
2024-04-25 14:32:51 +02:00
Matt Wiebe
848055c6a5
Remote Reply: limit enqueue to when needed (#725) 2024-04-11 09:08:08 +02:00
Matthias Pfefferle
2f66566f58 improve remote reply handling
see #720
2024-04-09 13:18:49 +02:00
Matthias Pfefferle
0cd1cdd4e8 remove remote_reply_assets_needed check
I had to remove the `remote_reply_assets_needed` check introduced in #706 because it removed the JS completely on my test machine
2024-04-08 10:07:55 +02:00
Matt Wiebe
7ae3e7383d
Comment reply federation: support is_single_user sites (#712)
* 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>
2024-04-04 23:16:05 +02:00
Matt Wiebe
9e676e6339
Federated replies: improved UX for "your reply will federate" (#715)
* Federated replies: improved UX for understanding that your reply will federate

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-03-26 15:41:23 -05:00
Kaspars Dambis
343a3b5c67
Enqueue reply assets only if there is anything to reply to on the page (#706) 2024-03-12 12:57:07 -05:00
Matthias Pfefferle
5988736b14
Add/remote reply (#689) 2024-02-22 16:32:16 +01:00
Matthias Pfefferle
2ed1534471 move generate_id to utils class 2024-02-09 16:31:09 +01:00
Matthias Pfefferle
ec24523df2 only disable comments for replies from the fediverse 2024-02-09 15:49:38 +01:00
Matthias Pfefferle
98824d3a08 tweak federation state a bit 2024-02-07 17:54:48 +01:00
Matthias Pfefferle
1fc6869576
improve federated comments (#645)
* 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
2024-02-01 11:17:03 +01:00