I'm not sure what KES is but if I just scroll a bit then what u want to read or what I am writing is clear of the arrow. I don't use the arrow and am indifferent to it but I imagine others may like it. I use the PWA.
Progressive web app. You install it from your browser, and it runs from your browser, but you get a special icon to launch it. Probably more To it than that, but that's the most I think I know enough to say haha!
It may have something to do with the bug mentioned here:
The improved collapsible comments add-on, part of the original KES collection in version 1.0.0, has some conflicts with kbin's own implementation of collapsible comments. I am cleaning this up, but it may take some time
I think you're referring to the black bar below comments that are too long which can be clicked to expand the comment?
That has nothing to do with KES's collapsible comments feature as someone else brought up. It's a native kbin feature.
KES actually has a feature that addresses this by automatically clicking that bar, but it seems to only apply to thread bodies, not comments, currently. If you're interested in having it apply to comments too, try filing a new issue on Github requesting the feature. The mod in question is "Always expand post bodies" in the Threads category. This should be fairly easy to add.
Thank you. For me it shows up as a grey bar with an arrow in it (it then becomes two bars when pressed); that might be based on color scheme. But, yes, toggling various KES mods didn't affect it the issue, so it's very likely that it's a Kbin issue. Surprised no one else has mentioned it, if that's the case! It seems to just block out the last couple of lines afaik
I wasn't able to reproduce the issue on a default kbin setup with KES either on off. The "always expand post bodies" feature of KES only applies to bodies, but I could extend it to support comments as well so that they auto-expand. What I didn't observe was any situations where the expansion bar obscures the text. Do you have a screenshot of that?
I know what they mean, because I have the same issue on my work pc (but not at home). I forgot it happens because the personal userstyle I'm using includes CSS to fix this issue entirely.
@speck get yourself Stylus if you don't have it already and try this CSS which works perfectly for me:
div.more:not(:nth-child(1 of .more)) {
display: none;
}
Can't guarantee it works with kbin's built in custom CSS functionality, as that one seems to filter out some selectors (no logic behind which).
@shazbot
Basically, what happens without that CSS is that
Clicking the bar once scrolls me down a bit but otherwise does absolutely nothing.
Clicking the bar again turns the arrow upwards and spawns a new bar above the existing one.
Clicking the upper bar repeats step 1.
Clicking the upper bar again turns the arrow upwards but doesn't spawn another bar, nor does it do anything else.
Clicking the lower bar removes the upper one again and turns the arrow back downwards.
At no point is the comment ever expanded. When OP says it obscures text, that's just the default state where only x lines of the comment are shown and the bar covers the last line(s). The issue is the comment can't be expanded, so it keeps obscuring the text even when clicked as nothing actually moves.
Looking at the HTML source, I can see five instances of the bar existing at once on the same comment.
I tested just now to turn off my scripts one by one and KES was the culprit. Disabling it fixed the issue. I'll try checking which feature is causing it.
For me, the culprit is the collapsible comments mod (or the standalone script if you're using that one).
edit: The root cause seems to be lines 182 to 190. But the actual troublemaker appears to be on kbin's side, not KES. When the mod's main function finishes, the comment still only has only one .more element like when it began.
I've disabled all other mods and userscripts, so it's not one of those. Also just tried to disable KES (and even the monkey) entirely, running the script from the console instead. No change either, it's still happening.
The code fragment in question copies the comment into a new children container. I'm thinking this probably makes some part of kbin confused, leading to the issues we're seeing.
It might be best to just include the userstyle I'm using in the CSS added by the mod.
This is the code between lines 182 and 190, removing which prevents the issue:
let children = previousComment.querySelector('.children');
if (!children) {
// If not, create one
children = document.createElement('div');
children.className = 'children';
previousComment.appendChild(children);
}
// Insert comment into children container
children.prepend(comment);
Thanks for looking into this. I've been meaning to audit this mod, but was a bit busy this week. In light of this report, this seems like as good a time as any.
Unfortunately, the mod is no longer maintained by the original author, so I'll have to inherit it and refactor it. I feel it is overengineered for what it attempts to do, so it should be streamlined and the aforementioned issues fixed. I am also aware of the issue that the mod fails to unset itself properly when turned off. I am really not satisfied with its current functionality.
Root cause analysis and solutions are described in a subsequent comment
I have completed an audit of the mod and observed the following issues:
Does not properly unset classes and restore the page to an intact state when turned off: this was having the side effect of making the threaded lines look incorrect when toggling on/off in place. The mod should not leave dangling containers around after it is toggled off. The mod creates an outer container so that the "expando" lines flow all the way down through the child elements, but when turned off, these child elements need to be moved back out of the container to be adjacent to each other and the container removed. => Fixed locally.
Does not properly unset event listeners attached to nested comments. Same as above, tends to leave dangling listeners and does not unset itself cleanly. => In progress.
Because it physically manipulates the DOM and moves sub-comments into their own container down the tree, triggers an event (likely a bug) on Kbin's side whereby any time the DOM is updated for that element, Kbin appends a more element (text expansion button) if the text overflows a certain length, even if a more element is already present. You can test this by creating a dummy div above or below a long comment and then moving the long comment before or after that div. Simply moving its position in the DOM will trigger the creation of another more element inside. And because the mod puts each comment into its own container for the purposes of threading nested chains of comments, this will trigger the creation of as many mores as there are indendation levels. So for a comment chain 5 replies deep, there will be 5 mores. This is further exacerbated when toggling the mod on and off, since these mores are not getting wiped and will just keep getting stacked up. Since this is also an upstream issue, our only alternative here is to walk through the tree and remove the extraneous more elements after nesting occurs. This is similar to your CSS solution, but instead of masking them, physically deletes them, otherwise we will have a constantly growing tree of mores every time nesting happens. I guess this should also be reported upstream as well. Kbin seems to expect no DOM manipulation to occur, which is reasonable, I suppose, but might be better if the callback doesn't insert the more element at all if it's already present. => Easy fix on the Kbin side, in progress.
I have resolved the aforementioned issues with a hotfix on the testing branch; please test when time permits. Executive summary:
The mod fully restores the DOM tree to its original state when toggled off. It is now possible to toggle the mod on and off on the same page without reloading, and changes will behave as expected.
For reasons of security, the mod no longer allows clicking the post headers or post body as a means of collapsing/expanding comments. This was attaching unnecessary listeners to elements on the page, with no way of clearing them when toggled off (besides hard refreshing). Now the only approved way of expanding/collapsing is to use the +/- icon or colored bars.
The mod erroneously modified the CSS of profile pictures to give them rounded borders, which was unspecified by its intended behavior and documented nowhere in the description. Now they conform to the standard square format.
The superfluous mores are being removed now for comments with overflow text. What I thought would be a quick fix turned into hours, and I thought I was losing my marbles over this one for a long time, since the tree clearly showed numerous duplicate mores, but only one per comment was being shown at runtime of the script. At first, I did not seriously think that the mod was completing its runtime cycle prior to the duplicate mores being spawned, but indeed this is what was happening. For now, I have added a 20ms sleep before clearing the extra mores, and this seems to suffice to let them propagate before the mod can continue with the cleanup phase. This seems satisfactory for now, short of attaching observers to wait for the duplicate mores to appear.
I believe that covers everything. It should be possible to switch the mod on and off at will now and see no adverse effect.
Teardown isn't working for me, tried multiple devices and turned my custom styling off.
After teardown this is how the site looks like to me. Also, it seems you need to remove the mores on teardown too. The more issue is now fixed when the mod is active, but appears again after teardown.
That code snippet seems to work I'm new to stylus, but I think I did it correctly and it allowed me to expand and read your two longer comments here. Thank you for that!
Under the post there's a "more" button behind which you can find a "report" option. I assume this goes to the moderators of the magazine, but not entirely sure.
In the site's footer, there's a Contact link if you need to report something to the instance owner directly.
And of course you can just message or otherwise contact your instance's owner, in this case Ernest. There's a Send Message button in the sidebar when viewing profiles.
You can report a post. It will even tell you if it has already been reported. I do not know who receives this report. I report and then block this type of thing.
Given that we're so small at the moment, why should a post need an upvote to be at all visible on the default sort? It can the only post of the past two weeks, but if there's no upvote, it doesn't get seen. It's very impractical.
And even if we go with this logic, why should the criterion for a post being seen be whether OP remembers to upvote their own post? It doesn't make sense. If you think that posts should only be seen if someone opts to go through new and give it an upvote (because otherwise it's not a "hot" post), OP shouldn't be able to do that.
Right now, we have a system where a major factor in post visibility is, "Did OP remember to click the upvote button?" It's just not beneficial.
The "sort by hot" algorithm was probably designed with a larger user base in mind, but I agree with you. For small communities in particular (and the vast majority of Fediverse communities are still tiny) I think even posts with no upvotes (ie no self-upvotes) should be included in the "sort by hot" view. For larger communities, where the threshold for "new" and "hot" may be set higher, so it doesn't matter so much. (I don't know what the algorithm is, but it might be something like 'hot is defined as getting a minimum of X votes, where X scales with the size or activity intensity of the community'.)
i agree, i think your argument is 'why arent my own posts automatically liked by me'
call me a pedant but it hurts me to hear a category labeled hot, that has not had literally any user related activity. those 2 things are incompatible. just swap hot for new and call it day
hot to me is an 'activity over time' metric, and zero doesnt play nice
Yeah, having posts automatically upvoted by OP would be great. I think that Lemmy automatically starts with an upvote count of 1 regardless of OP's vote, so I think Kbin should do the same. I get that Hot is meant to factor in activity and time, but it just feels super off for the only post in the past month to not appear. Surely a post that was made an hour ago is hotter than a post was made weeks back.
I think it would be great if we could change the default sort. Would love to sort by new by default.
If there's not already a functionality like that hidden somewhere (checked in both settings menus), I'll put it on my list of stuff I want to implement via userscripts.
I don't have anything to add but appreciate you beginning the discussion. It seems that all instances will periodically face this issue; perhaps it would be good to have a proactive plan on place for when it becomes relentless.
I tried to report some spam the other day and I got a message along the lines of "this message has already been reported" so I don't think anyone is getting 100 reports of anything, only 1 for each spam.
I should have had a look at codeberg before making my post. As well as the entry you identified, there's also this, a suggestion to rate limit accounts: https://codeberg.org/Kbin/kbin-core/issues/948
Another option might be that, after an account has been reported a given number of times, any further content from it is temporarily quarantined, allowing some level of moderator to check the account before approving queued and further posts. (Quarantine could also be combined with some of OP's suggested triggers.) Quarantine has pros and cons as well, but it's another option to consider.
kbinMeta
Najstarsze
Magazyn ze zdalnego serwera może być niekompletny. Zobacz więcej na oryginalnej instancji.