2020-06-30, 12:07 AM
(2020-04-02, 09:12 PM)Euan T Wrote:(2020-04-02, 01:40 PM)skrilaxrev Wrote:Thanks, I'll look into it this weekend and try get it fixed.(2020-03-07, 04:31 PM)Euan T Wrote: That's a very odd issue, I'll try and replicate it. Do yo know which alert is being created? Is it the subscribed thread alert or the thread author alert or the quote alert?
Hi, thank you for your response!
I am pretty sure it's for the subscribed threads alert.
Thanks to a clue of the German MYBB community, i fixed the "subscribed alert for drafts"-bug.
It is nearly the same bug as here, just not for quote alert, but for subscribed threads:
https://github.com/lairdshaw/MyAlerts/co...5eb86aa5ca
It is pretty simple to solve, so please insert it in the next update and other people do this for the solution:
Find this:
$plugins->add_hook('datahandler_post_insert_post', 'myalertsrow_subscribed');
function myalertsrow_subscribed(&$dataHandler)
{
global $mybb, $db, $post;
if (!isset($mybb->user['uid']) || $mybb->user['uid'] < 1) {
return;
}
And change to this:
$plugins->add_hook('datahandler_post_insert_post', 'myalertsrow_subscribed');
function myalertsrow_subscribed(&$dataHandler)
{
global $mybb, $db, $post;
if (!isset($mybb->user['uid']) || $mybb->user['uid'] < 1 || $post['savedraft']) {
return;
}