-
Notifications
You must be signed in to change notification settings - Fork 85
Comment: Send announce for all new comments #1515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
||
namespace Activitypub\Handler; | ||
|
||
use Activitypub\Collection\Interactions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.