Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
fedicat
fedicat
@fedicat@pc.cafe  ·  activity timestamp 2 weeks ago

I've seen the raw HTML for some #piefed post content showing in the spoilerText field on some platforms via the mastodon api, including #gotosocial, #neodb (takahe/incarnator) and I think #pleroma. My current kludge is to check the spoilerText for html tags (specifically, a beginning <p>).

snippet of a post showing the raw html of the post content displayed as a spoiler/warning
snippet of a post showing the raw html of the post content displayed as a spoiler/warning
snippet of a post showing the raw html of the post content displayed as a spoiler/warning
  • Copy link
  • Flag this post
  • Block
Rimu
Rimu
@rimu@mastodon.nzoss.nz replied  ·  activity timestamp 6 days ago

@fedicat Ooo, that doesn't sound ideal. Mastodon doesn't have that problem, does it?

Any opinions on which platform needs to change what?

(I'm the lead PieFed developer)

  • Copy link
  • Flag this comment
  • Block
fedicat
fedicat
@fedicat@pc.cafe replied  ·  activity timestamp 6 days ago

@rimu it’s fine on mastodon but has varying results on all the other mastodon api platforms I tried, attached are screenshots from my app on gotosocial, neodb, pleroma, and sharkey, but I duplicated with plfe and phanpy before. In the screenshots I’m truncating the spoilers and running them through an html converter but gotosocial seems to turn it into plain text and also sets the sensitive flag. But I notice posts in the last week look OK, maybe something changed?

4 media
test on pleroma
test on pleroma
test on pleroma
neodb test
neodb test
neodb test
sharkey test
sharkey test
sharkey test
gotosocial test
gotosocial test
gotosocial test
  • Copy link
  • Flag this comment
  • Block
Rimu
Rimu
@rimu@mastodon.nzoss.nz replied  ·  activity timestamp 6 days ago

@fedicat No, nothing changed at our end.

In AP, the 'summary' field has different meanings depending on the type of the Activity. For a Note, it's a content warning. But for all other types, it's just a summary in the more usual sense.

https://github.com/mastodon/mastodon/issues/8609

I think.

Still, I had a dig through the PieFed code and found a place where a summary is being added to a Page activity. This is of no use to PieFed and could possibly be 'confusing' other systems so I've removed it.

Thanks!

  • Copy link
  • Flag this comment
  • Block
fedicat
fedicat
@fedicat@pc.cafe replied  ·  activity timestamp 6 days ago

@rimu oh cool, that's interesting to know!

  • Copy link
  • Flag this comment
  • Block
Chee Aun 🤔
Chee Aun 🤔
@cheeaun@mastodon.social replied  ·  activity timestamp 2 weeks ago

@fedicat but what if it's a false positive, as in the <p> is intentional? 🙈

  • Copy link
  • Flag this comment
  • Block
fedicat
fedicat
@fedicat@pc.cafe replied  ·  activity timestamp 2 weeks ago

@cheeaun ah, that doesn’t work, it’s html on neodb but plaintext on gotosocial plus sensitive is set differently

3 media
post on mastodon without a spoiler text field and sensitive false
post on mastodon without a spoiler text field and sensitive false
post on mastodon without a spoiler text field and sensitive false
post on gotosocial with a plain text spoiler text field and sensitive set to true
post on gotosocial with a plain text spoiler text field and sensitive set to true
post on gotosocial with a plain text spoiler text field and sensitive set to true
post on neodb with html in the spoiler text and sensitive false
post on neodb with html in the spoiler text and sensitive false
post on neodb with html in the spoiler text and sensitive false
  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct