Masto posts with n+1 hashtags are downloaded n+1 times #28
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
tagging a post with
#hash1
,#hash2
means it is downloaded twice intohash1/
andhash2/
which means it will be shown twice on lumbung.space. we should only download it once for one hashtag? or somehow we should handle duplicates, I guess it should be downloaded but not shown twice on the listing (i.e. if you click#hash1
you should still see it and if you click#hash2
you should still see it...)masto posts with n+1 hashtags are downloaded n+1 timesto Masto posts with n+1 hashtags are downloaded n+1 timesI think at the root it has to do with how the data is pulled in and checked for existence. Probably two seperate posts are now made. However, posts can have multiple categories (tag a, tag b) and a single post can thusly be shown in different category pages. So the issue should be with https://git.autonomic.zone/ruangrupa/lumbunglib/src/branch/master/lumbunglib/hashtag.py rather than the hugo theme.
The solution is to add a logic to check whether:
Hmmm, nice. If we skip downloading the post tho, then the link on the hugo theme side will 404, so I think we still need to download them? Perhaps just filtering on the theming side could also be a fix? Investigating...
see ruangrupa/lumbunglib#19
We tried to fix this today but there are still issues in the implementation of lumbunglib, so, for now, we've disabled the socials contente generation in
5ad74ef1cc
and removed the duplicates manually. the fix is Coming Soon ™️closed in ruangrupa/lumbunglib#22