[-] Nothing4You@programming.dev 2 points 2 years ago

0.4.1 is pretty old, but the link you provided leads to a manifest.toml that seems to indicate 0.5.17.

pict-rs introduced temp file cleanup in 0.5.10, but that might not have cleaned up old media if you only recently upgraded.

from a short look at the repo i didn't see where /lemmy/magick/ is defined, so i'm not sure if that is indeed the pict-rs temp folder.

[-] Nothing4You@programming.dev 2 points 2 years ago* (last edited 2 years ago)

this is most likely the case, pict-rs headers allow caching basically forever and don't include revalidation. i'll bring this up with the pict-rs dev about changing the default or adding a config option for this.

something like s-maxage should do the job, though it'd probably be up to the instance operator to decide on a sane value for that, as it will always be a tradeoff.

ideally, lemmy would have a mechanism for cache purging, but i suspect that this might be something that people will have to implement themselves using the 1.0 plugin system at some point, as it's probably not going to become core functionality to support e.g. cloudflare cache purging.

edit: it seems that the 1 year cache is already an override by aussie.zone - pict-rs only sets a 7 day max-age, which is passed on by lemmy as can be seen e.g. on lemmy.ml, which isn't behind cloudflare, or on progamming.dev, which is behind cloudflare but doesn't seem to be overriding it.

[-] Nothing4You@programming.dev 2 points 2 years ago

the unban itself federates, but on community bans the user gets unsubscribed from the communities, which deletes the associated subscription in the db.

skimming over the code it seems to be only happening in case of community bans (including the ones derived from instance bans on 0.19), but it should also remove your local subscription on your own instance. as long as that federates it should still be picked up by lemmy-federate eventually, as your local instance should also have removed that when receiving the community ban.

it might be debatable whether subscriptions should get removed with community bans for public communities, but overall the code logic seems to be there. i haven't tested this end to end yet.

[-] Nothing4You@programming.dev 2 points 2 years ago

I didn't mean only showing Anubis to unauthenticated users; this was in response to OP mentioning to add this before posting or commenting, which would be the opposite of removing it for authenticated users.

[-] Nothing4You@programming.dev 2 points 2 years ago

it should cover all federated actions.

any instance admin can decide to ban you on their instance or remove your content on their instance, but unless it's a local community or they're mod of the community these actions won't federate and will only apply to that specific instance.

the most useful one to look at is generally the one on the user's home instance, as that should list all actions that federated.

instance bans currently generally don't federate and won't show in the modlog of your home instance, but recent lemmy versions are automatically issuing community bans for all communities on that instance that you participated in.

[-] Nothing4You@programming.dev 2 points 2 years ago

it's also the case for deletions without account deletions, but iirc there is some delay before it gets rewritten in the db to allow the user to undelete it for a bit of time.

[-] Nothing4You@programming.dev 1 points 2 years ago

fwiw, the estimate number only states the max amount of activities behind. the real number can be lower, but not higher (unless sending is entirely broken on the instance being checked).

each activity being sent has a numeric id in the database. lemmy has an api that returns the id of the last activity that was either successfully sent to an instance or skipped when it didn't need to get sent (e.g. pm to a user on a different instance). there may also be holes in activity ids due to postgres implementation details for auto-incrementing sequence ids.

for determining the highest known activity id to compare it with the last activity id sent to a specific instance, you can just go through the successfully sent ids for all instances in the response and find the highest number across them all. then you can calculate the difference between the highest number and the number for the specific instance.

depending on the lemmy version and timing of the action, it can take up to 30 seconds for the activity queue to deal with new activities, so on a somewhat busy instance the delta is likely rarely going to be zero.

[-] Nothing4You@programming.dev 1 points 2 years ago

@fmstrat@lemmy.nowsci.com there's also rss feeds for communities

[-] Nothing4You@programming.dev 1 points 2 years ago

since you're on programming.dev, you may be affected by https://programming.dev/post/20515601

[-] Nothing4You@programming.dev 1 points 2 years ago

so just dropping duplicates then?

are there no references to the duplicates from posts? if there are and the duplicate rows are just deleted it'll cascade deletion and purge all those posts from the db as well

[-] Nothing4You@programming.dev 1 points 2 years ago

for content that was not federated prior to defederation, yes.

[-] Nothing4You@programming.dev 2 points 2 years ago

if you open https://lemmy.world/api/v3/user/unread_count after being logged in, it should at least tell you what kind of unread message it is.

with that information it can probably be narrowed down a bit.

i don't think this is related to an inconsistency with blocked users, as that is only being fixed in 0.19.4 or 0.19.5: https://github.com/LemmyNet/lemmy/issues/4227

moderated or deleted comments as mentioned by others don't look like they would be the case when i'm looking at the 0.19.3 code.

the bot reply mentioned by @DABDA@lemm.ee seems like a very plausible explanation, as bot accounts are hidden from the comment reply list in the api, but they're not currently excluded from the notification count.

i'll have a look at whether that is still the case in the current development version in a bit and submit a pr to fix that if it is.

view more: ‹ prev next ›

Nothing4You

0 post score
0 comment score
joined 2 years ago