Skip to main content


!Friendica Developers
I just finished my Friendica upgrade and decided to let the "unseen" counter code execute again (I manually commented it out as an experiment earlier this year when user counts started going up a lot). It maxes out at 999+. It refreshes every 30 seconds the way I have my profile configured. It had well over a hundred within a minute. It was maxed out by the 11 minute mark. I'm probably going to make this an actual code thing to be able to toggle it off. #friendica #friendicadev
@Hank G ☑️ What's this unseen counter code of yours? The current version works pretty well.
The temporary change was literally just me commenting out lines 136-167 of src/Module/Notifications/Ping.php. The larger change I was talking about would be to add a toggle button that would do the same thing with an if statement like what I did with the group level unread counters. For my server the top level one alone is/was a substantial amount of my database usage. If the flag is always there and is always 999+ after 10 minutes then it really doesn't add any value to me but it is causing a lot of DB work.
@Hank G ☑️ How about reducing the limit to 100 instead of 1000 ?
It hits that within two update cycles at most. I thought about tracking it but if I recall correctly it was at 175 or something like that at the one minute mark. So it essentially will always tell me I have new network activity.
@Hank G ☑️ Yes but the DB work will be less for the same display relevance (99+ or 999+ looks like the same).
Agree but if it essentially always comes back with the same answer why bother having it do any work at all? I understand that for people that follow a lot less people and/or a lot less chatty people it may be a decent thing to have. It just isn't for my use case at all. That's why the code change I would consider making would be to make it toggleable.
@Hank G ☑️ Indeed. In my own use it rarely goes above 25.
A toggle or a clear all would be also great!
It should clear the top one when you click on the network (grid) button. I don't know how it works with the groups one since I turned it off a long time ago.
So clearing unread counter when visiting network tab is not working for you? Is there an issue for that? I couldn't find one mentioned in this discussion here.
@Wilhelm No, the problem Hank is having is that when he is not clicking the Network icon and clearing the notifications, they pile up so fast (because they're following so many people) that the notification badge is basically useless.