Skip to content

Tuairimí & Aiseolas | Comments & Feedback

2 Topics 8 Posts

Tell us what you think. We can take it. Probably!

This category can be followed from the open social web via the handle comments-feedback@caint.ie

  • Language filter on auto imported topics?

    3
    0 Votes
    3 Posts
    375 Views
    padraigP
    And this has been fixed. Again, I was tired of waiting for a fix, so I used Claude to help with this. It ended up making a plugin for this site which is a lot cleaner. It’s not perfect, but at least it is something. This applies to posts coming from the Fediverse and posts created on Caint.ie Whenever a user on Caint.ie posts in a language that is not English nor Irish, they will see this message: “Your post appears to be in a language that is not currently accepted on this forum. Caint only accepts posts in English or Irish (Gaeilge). If you believe this is a mistake, please contact the site administrator.” Fediverse posts that are not in English nor Irish will simply not come through. There are some rules: A post will be ALLOWED if: The text is shorter than 10 characters (too short to detect reliably) The language cannot be determined (returns und) The detected language is English (eng) The detected language is Irish (gle) A post will be BLOCKED if: The text is 10 characters or longer, AND The language can be determined, AND The detected language is anything other than English or Irish Additional things worth knowing: HTML tags are stripped before detection, so formatting does not affect the result Detection is based on the post content for replies, and the content or title for new topics The language detection is statistical – very short posts that scrape over the 10 character minimum may occasionally be misidentified Mixed language posts will be judged on whichever language dominates the text Posts where the language genuinely cannot be determined are always let through rather than risk blocking legitimate English content
  • Auto imported posts lacking original images

    5
    0 Votes
    5 Posts
    653 Views
    padraigP
    And this has been fixed. I did raise this with NodeBB developers who added it to an existing GitHub issue that has been there since July with no movement on it. I did ask Claude to help to resolve this, so I won’t take credit, but at least there is a fix… It now looks like this: [image: 1773967686841-78312bc9-ddc8-46cb-853f-95eb69bebb21-image.jpeg] For anyone that is running NodeBB and wants to fix this Go to: ACP -> Appearance -> Custom Content (HTML/JS/CSS) -> Custom CSS/SASS and add the following: /* Hide the topic thumbnail in the top-right corner */ .flex-shrink-1.d-flex.flex-wrap.gap-2.hidden-empty { display: none !important; } Then go to: ACP -> Appearance -> Custom Content (HTML/JS/CSS) -> Custom Javascript and add the following: $(window).on('action:topic.loaded', function() { var $thumb = $('.flex-shrink-1.d-flex.flex-wrap.gap-2.hidden-empty img'); if ($thumb.length) { var imgSrc = $thumb.attr('src'); var $inlineImg = $('<img>', { src: imgSrc, style: 'max-width: 100%; height: auto; display: block; margin-bottom: 1rem;' }); $('[component="post/content"]').first().prepend($inlineImg); } }); You can change prepend to append if you prefer having the image below the OP text. Rebuild & Restart your NodeBB forum.