• Andrew@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    9 hours ago

    Hello. Hopefully we’re in deep enough in the comments for meta-chat not to be too annoying for others. Re: hotlinking from fandom sites - a search around the web suggests that other sites struggle with it too, because it looks like the ‘fandom’ people try to prevent it, and send a blank image whenever they detect it.

    I don’t know how Lemmy gets away with it. I tried re-arranging elements the same way that Lemmy does, and it didn’t work. However, I have found that if you replace the word ‘static’ in the URL, with the word ‘vignette’, then that does work. This is the kind of thing that can be automated, so it can be fixed in a future commit.

    Demo below (in spoiler tags to try to reduce the clutter for others):

    demo

    Edit: I’ve also been adding an API to PieFed and testing it out with a fork of Lemmy’s Thunder app - using this seems to solve both problems: it can render the image without shenanigans, and it provides a preview too (I doubt preview functionality will be added to the main raw website if it requires significant amounts of JavaScript, 'cos we’re trying to avoid that).

    • OpenStars@piefed.social
      link
      fedilink
      arrow-up
      2
      ·
      8 hours ago

      Omg that is beautiful! Yes as you say that particular style of image was really hard to get working as Lemmy likewise struggled with it - perhaps you arrived at the same or similar solution, but even if yours is a totally different solution that’s awesome that you’ve already cracked it!:-)

      I’ve been trying to keep a list of things I am experiencing, though some of it were things that I encountered on a smaller Lemmy instance as well, like delays in federation - e.g. I pulled in this post https://piefed.social/post/295422 but it shows (to me) as having zero comments, when in reality it should have 18. Though I am guessing that there is a quite good chance that it may catch up in the next day or two. I also tried to “leave” and then re-“join” some communities, in case that may help trigger the federation action to pull from the original host.

      Hey I have a question that you may enjoy, and if not then that’s okay to tell me too:-). On a Mac desktop using Chrome, I cannot simply do the left-swipe to use the “back button” to return to a previous page. That works on Lemmy, but not PieFed. Although moving the mouse way up to the actual Back button works, as does keyboard shortcuts (command-leftarrow). And the same for right-swipe / Forward button. I am not sure if I am even using the correct terminology there but I hope that helps:-). It seems so silly, but since it is something that I may do tens of times each hour, possibly multiple times per minute at peak, I find that it really slows down the navigation. Is that something that others have mentioned and/or that could perhaps be fixed, or is this something too deeply ingrained in how the UI works? Making for a “smoother experience” seems like it would be a good thing if possible though.

      And either way, I hope this conversation is interesting to you:-).

      • Andrew@piefed.social
        link
        fedilink
        arrow-up
        2
        ·
        8 hours ago

        Re: that post of on “ye power trippin’ bastards”, those comments will never come through. I’d guess that you pulled that post after the comments had been made, so they won’t federate out again, because they only do that when they’re originally created (or updated). Leaving and Joining won’t make any difference. There’s an argument that we should fetch a comment if we receive an upvote for it, but Rimu wasn’t too keen on it last time it was raised.

        Re: swiping with Mac. I had no idea that was possible tbh, but I just tried it on my old MacBook Air, and it turns out that the two-finger swiping works in Safari, on PieFed as well as any other sites. This suggests that it’s a problem with Chrome, but I wouldn’t know where to look for a fix (it’s not the kind of functionality that websites have much involvement in - they don’t need to do anything to enable it, and would struggle to disable it, beyond the usual ‘back-button’ capture that some dodgy sites do, but PieFed doesn’t).