• 2 Posts
  • 19 Comments
Joined 2 years ago
cake
Cake day: October 19th, 2023

help-circle



  • @baris Not related to this, but I am also facing a problem due to csrf token. I earlier used cloudflare SSL on my nodebb instance but now have turned it off because it was giving issues with loading media for federated accounts. My account was auto logged off and now I cannot login. Everytime I try to login, I get the error “Login Unsuccessful We were unable to log you in, likely due to an expired session. Please try again” and the url bar shows

    /login?error=csrf-invalid
    

    This happens both for admin as well as non-admin user. I have turned on-off-on as well as restarted both nodebb and nginx but the problem remains. Any suggested solution?


  • @bh4-tech I realised that a part of the issue was due to the fact that I was using cloudflare proxy. Disabling that improved the situation. Now, my instance does not crash on viewing threads media. Also, for every 3-4 media , 1 media file loads properly(link is not displayed, actual media is displayed). Maybe, admins should have the ability to set a custom timeout for the link preview plugin so that the success rate for viewing remote media becomes 100% as compared to current 25-33 %. @julian










  • @bh4-tech Update: I think that community.nodebb.org is now running with latest commits from the develop branch and so remote images and videos can be viewed once we click on the attachment link. But I think the UX can be somewhat improved.

    Current experience- A remote post contains a media file. The file(image) is not displayed below the text and only its link is displayed. An unaware user might not notice that it’s an image and not click on the link thinking it’s an external link and, in that case, will only see the text and so the post will feel awkward to the user.(I know that once any one user clicks on a link, the media gets loaded inline automatically for all other users, but even that also seems a good amount of friction). Also, if the forum is installed as PWA, clicking the media link will open it in a custom tab.

    Possible improvement- Instead of the link, show a simmerring image loading animation(the one we see on instagram or youtube when images/thumbnails are loading) with the text “Click to view” and upon clicking on the animation the media gets loaded.