-
-
Notifications
You must be signed in to change notification settings - Fork 18
Rerun on Update #39
Comments
I'm not sure if this is true, because of manually editing comments, etc. related: pfefferle/wordpress-webmention#57 |
Maybe the solution is that updating a webmention has a hook to it that can rerun the function. |
OK, found the problem... It is a result of this change: bb13b0e Not sure what the best fix would be atm. Reverting to the old |
Well, currently only webmentions support update. So, adding the hook back to the webmention hook might work. All you have to do is add a flag very early on in linkback_fix that stops it if it finds the comment meta you added in, indicating it has already been processed. |
but what about the notification emails? |
What was causing emails to not go out? Adding a hook on a nonstandard action shouldn't affect core actions at all... |
This was the problem: #25 |
#25 is about presentation filters, which do not need to be changed. The proposal is to add a hook to the webmention action, and keep everything else (including all current hooks) as-is. |
Sorry for my short answers :) @dshanske detected that the And wait until the notification improvement was discussed by the WordPress guys: https://core.trac.wordpress.org/ticket/33587 |
So, the proposal here to to keep the comment_post hook and add the webmention hook along with logic to prevent duplicating effort when a webmention comes in the first time. |
@singpolyma Exactly |
The notification improvement was to make notifying a hook on comment_post. Which fires before linkback_post |
I am not sure if this fixes the problem completely, because the plugin also supports Pingbacks and Trackbacks, not only WebMentions. |
But only webmentions support being updated. The others ignore dupes |
Let me see if I can work up a pull request in the next few days. |
@singpolyma but why not improve linkbacks and trackbacks? @dshanske what do you plan to add? |
I am not sure if it is a good style to only use |
To really change trackbacks and pingbacks we'd need Core to support a common handler for the two. Thinking of proposing it, but no one seems interested in Linkbacks in general. |
@pfefferle You want to bundle a custom notification function in Semantic Linkbacks? |
@pfefferle I was going to try to further break down the code. |
yay thank you! |
I am working on a better solution for this in 4.5 |
specifically using "Bridgy Response" HTML title for liker's name. for #516. not sure that this has been fixed in the wordpress plugins, but hope so, in pfefferle/wordpress-semantic-linkbacks#39 or pfefferle/wordpress-webmention#57 or nearby. it's been 5y. :P
Linkback Fix should be rerun on update comment by being added to the edit comment hook.
The text was updated successfully, but these errors were encountered: