Giter Site home page Giter Site logo

Comments (5)

GeopJr avatar GeopJr commented on May 29, 2024 1

Yep, I'll include it here too:

GTS:

<span class="h-card"><a class="u-url mention" href="https://queer.party/@yavien" rel="ugc nofollow noreferrer noopener" target="_blank">@<span>yavien</span></a></span> seconded from my own personal experience<span class="quote-inline"><br><br>RE: <a href="https://queer.party/users/yavien/statuses/112333867184539778" rel="nofollow noreferrer noopener" target="_blank">https://queer.party/users/yavien/statuses/112333867184539778</a></span>

Mastodon:

<span class="h-card"><a class="u-url mention" href="https://queer.party/@yavien" rel="nofollow noopener noreferrer" target="_blank">@<span>yavien</span></a></span> seconded from my own personal experience<span class=""><br><br>RE: <a href="https://queer.party/users/yavien/statuses/112333867184539778" rel="nofollow noopener noreferrer" target="_blank">https://queer.party/users/yavien/statuses/112333867184539778</a></span>

diff:

- experience<span class=""><br><br>RE: <a href=
+ experience<span class="quote-inline"><br><br>RE: <a href=

edit:

I want quote-inline to be sanitized until (or if) GoToSocial adds quote support. That class is used by AP servers that support quotes to indicate what elements are included for compatibility with clients that do not support displaying the quoted posts.

So in the case of Tuba, since we do display quoted posts when provided, we remove any elements that have the quote-inline class. From our side, we will now also check if a quoted post is provided at all before removing those elements but other clients might not do that so it's better if GTS just sanitizes that, like Mastodon does!

from gotosocial.

tsmethurst avatar tsmethurst commented on May 29, 2024

Could you give an example? It's not totally clear from the issue what's being removed, what's not being removed, and what should be kept.

from gotosocial.

daenney avatar daenney commented on May 29, 2024

I think there's an example in GeopJr/Tuba#926 (comment), if you expand the "Details" thingy.

from gotosocial.

tsmethurst avatar tsmethurst commented on May 29, 2024

Oh OK, we could probably just add that to our sanitizer then.

from gotosocial.

tsmethurst avatar tsmethurst commented on May 29, 2024

Got it, thanks for the extra detail πŸ‘

from gotosocial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.