Please tell me how to return a group of guests? I didn't can find that group and add her again.
I deleted guests groups in 1000 category and now I don't understand what do. Please, give me code example for add to that group all categories.
I found the solution. Thanks!!!
solved, the removed users were still present on username:uid
the id 0 and global guest comes from trying to search non existant users on user:uid
The change should have been backported to 0.5.x, so you can just pull the latest commits from that branch to get v0.5.4
That should be available in Settings -> Groups 🙂
Sorry for bothering guys, I found it in the source code.
There are two hooks already:
Both of them takes only one argument:
Exactly what I'm looking for!
action:groups.* hooks in the source code were renamed to
@h0lybyte Which database are you using? You can remove the ghost categories from the correct sorted set to get rid of them.