-
Notifications
You must be signed in to change notification settings - Fork 67
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
Profiles: Update
followers when profile fields change
#542
Conversation
38ab84f
to
af3e61c
Compare
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.
Should we include user Profile Banner code within this plugin?
// profile updates for user options | ||
if ( ! is_user_type_disabled( 'user' ) ) { | ||
\add_action( 'updated_user_meta', array( self::class, 'user_update' ), 10, 3 ); | ||
// @todo figure out a feasible way of updating the header image since it's not unique to any user. |
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.
@mattwiebe @pfefferle I have a Profile Banner code stub, which could live inside this plugin, but also makes sense as an independent block for Block Theme use. Any thoughts?
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.
@mediaformat sounds interesting! Do you have a public repo with the code?
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.
LGTM
When I tested this on dotcom it did not necessarily seem like it worked, but that may have been a result of our other troubles there. I will try again now that we fixed our problems with the application user there before merging this. |
Currently we are at the mercy of remote servers refreshing profile data on their schedule. This PR will instead send an
Update
Activity to all Follower inboxes whenever an update to a relevant option or user meta is updated.Proposed changes:
Other information:
Testing instructions:
This is completely untested so far.