It would be great if we had a way to mark images/videos/links on a post as a spoiler.

Right now the closest thing to this is to mark them as NSFW or similar.

  • wjs018@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    This is high on my wish list as well. I might take a crack at this when I get a chance. From looking over the templates, I don’t think it’s too bad for a piefed-only version, but it would be my first time messing with the database structure for piefed and the stakes are higher than tweaking css or an html template.

    In essence, it would just need to create a label that causes post images to blur (like nsfw or nsfl posts do depending on your settings). Then, when you go to create a post, it would be a box you tick, just like creating an nsfw post.

    Because of federation, it would be nice if a piefed community mod could assign it to posts that federate in from platforms that don’t support it. However, much like post flair, that would not federate out to other piefed instances if the community home instance isn’t piefed.

    • Rimu@piefed.socialM
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      Lemmy will support flair quite soon, they have a PR for it that is compatible with PieFed.

      IMO flair would work perfectly for this.

      • wjs018@piefed.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 days ago

        I think the thing that makes spoiler flair “special” is that it is intended to obscure the content. I have made flair for the communities I mod that are called “spoiler” but without the effect of blurring images for example, it isn’t really functioning like a normal spoiler tag would.

        The use case for this is usually for entertainment-oriented things. For example, a community focused on a show like The Great British Bakeoff might want to have lots of memes/posts about the show and who got eliminated each week. However, if none of those meme images are obscured, then it spoils people that haven’t yet gotten to watch the episode. So, ideally, the spoiler flair on a post would blur the image until clicked on, just like the nsfw/nsfl blurring option now.

        If we don’t want to make an additional attribute alongside nsfw/nsfl, then perhaps there can be special behavior for post flair named spoiler?

        Looking through the issue list on Codeberg, I don’t see an issue for this yet, so I will go ahead and make one.

        • Rimu@piefed.socialM
          link
          fedilink
          English
          arrow-up
          4
          ·
          3 days ago

          I quite like the idea of adding a blur behavior to flair named ‘Spoiler’ although that only works in English.

          Perhaps in the communite management where flair is set up, flair needs an extra setting so that any flair can blur a post!

    • PieFedUser1220@piefed.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      Yeah, the widely supported method is to use spoiler tags

      like this

      Insert spoiler here

      Otherwise, some applications (like Eternity) support spoiler tags >!that are written like this!<

      The first method is useful as collapsible formatting, but I prefer the second method in terms of appearance… It’s just not supported very well across applications/instances.