Comment: Send announce for all new comments#1515
Conversation
|
I guess this could create quite a bit of load on sites with lots of followers that comment a lot. Is that something we need to be concerned about? |
|
If @obenland comment is a concern, maybe a switch to turn it off. |
| /* @ticket https://github.com/Automattic/wordpress-activitypub/issues/1001 */ | ||
| add_to_outbox( $activity, 'Announce', $user_id, ACTIVITYPUB_CONTENT_VISIBILITY_PUBLIC ); | ||
|
|
There was a problem hiding this comment.
This makes only sense if you use the ACTIVITYPUB_ACTOR_AND_BLOG_MODE and the Announce should always done by the Blog-User.
| /* @ticket https://github.com/Automattic/wordpress-activitypub/issues/1001 */ | |
| add_to_outbox( $activity, 'Announce', $user_id, ACTIVITYPUB_CONTENT_VISIBILITY_PUBLIC ); | |
| /* @ticket https://github.com/Automattic/wordpress-activitypub/issues/1001 */ | |
| if ( ACTIVITYPUB_ACTOR_AND_BLOG_MODE === \get_option( 'activitypub_actor_mode' ) ) { | |
| add_to_outbox( $activity, 'Announce', Actors::BLOG_USER_ID, ACTIVITYPUB_CONTENT_VISIBILITY_PUBLIC ); | |
| } | |
I would also recommend to only boost the Object-ID URL instead of the complete Activity. Not sure though if that is enough information.
| @@ -9,6 +9,7 @@ | |||
|
|
|||
| use Activitypub\Collection\Interactions; | |||
There was a problem hiding this comment.
| use Activitypub\Collection\Interactions; | |
| use Activitypub\Collection\Actors; | |
| use Activitypub\Collection\Interactions; |
|
Closing for now until we have a better understanding what's needed here. See #1001 (comment) |
|
Let's keep it open and set to WIP instead! |
|
@obenland have you tested it with the changes I suggested? |
|
We would also need to respect the moderation queue and only announce reactions that are published on the blog. |
|
closed in favour of #1562 |
Fixes #1001.
Proposed changes:
Testing instructions:
Changelog entry
Changelog Entry Details
Significance
Type
Message
Incoming comments create an Announce activity so other instances get notified about it.