Skip to main content


First (mostly) working cut of the filter UI for #relatica so too stoked not to share it. This shows several things. First, multiple filters. Second, can choose to hide it behind a warning card or make it disappear entirely (the red bar which will be an empty widget when run in release mode). Third, you can see that posts by certain people are filtered (by content in the post) but others from that same person are not. Fourth, filtering on domains and even wildcards (the *graph.social). Lastly, posts hidden behind a warning card can toggle it back hidden with the additional "hide" button on the upper-right of the card. Still have some rough edges but the whole system before I can push out the next version but client-side filtering is now wired up and ready to go. #relatica #friendica

LPS reshared this.

in reply to Hank G ☑️

Interesting....because I've been using the BBCode spoiler tag to do that manually.
Hmmm.
in reply to Clara Listensprechen

Yes there are spoiler flags too in Relatica for when someone has written a spoiler tag or if you want to put a spoiler tag on your own post/comment. This is for Relatica figuring out how to present it before it even gets that far. This is somewhat equivalent to the filtering that Mastodon proper has. I just want to get it in at least this client since doing it server side would have probably taken me a month instead of a weekend.
in reply to Clara Listensprechen

...so like in the example above...let's say you are sick of seeing posts from a particular server named "trollposter.net" that for some reason people on your server are interacting with so show up in your timeline periodically. In Relatica you could add a filter that says "hide all statuses from trollposter.net" and you'll never see them again.
in reply to Hank G ☑️

This doesn't render properly outside of Friendica--click to revealThis is how the BBCode spoiler command works ONLY if you're on Friendica, because it's BBCode.
in reply to Clara Listensprechen

Relatica adds the spoiler text properly but it is pretty easy to do it manually in a way that renders fine on other networks (not all though) using the abstract tag. Is that what you are using here?
in reply to Hank G ☑️

As I said, I'm using BBCode.
It won't render properly on Diaspora because Diaspora uses Markdown.
Mastodon rendering of BBCode is severely limited.
in reply to Hank G ☑️

I'll bet if you read my BBCoded post in your Mastodon account, you'll see exactly what I typed in to pull it off.
in reply to Clara Listensprechen

Unfortunately every where it is rendered as HTML. But there is a way to do it with BBCode that will render well everywhere. The code that Mastodon is using and Friendica will process into spoiler text when it federates to other networks is the "abstract=pub" method. If you find a post with a content warning on it and hit "comment" then Friendica fills it in for you automatically. Relatica is using the "spoiler_text" field directly when users put spoiler text on their posts and comments.
in reply to Hank G ☑️

Well yes but HTML renders text as typed in as a post or comment.
I did experiment with BBCode rendering using my different accounts on those different modes, and what I was describing was the result of that experiment. Sometimes Mastodon would properly render a spoiler command and sometimes it wouldn't
It DEFINITELY doesn't recognize text formatting BBCode!

...and apparently neither does friendica.myportal where font color is concerned. The font color BBCode works on Outsourced Math, however. Hmmmmm!

FIXED!!

in reply to Clara Listensprechen

I think you may have a typo in the BBCode. color-red I think should be color=red. That may work. It did through the API apparently....
in reply to Hank G ☑️

Well, now I wanna experiment with BBCode rendering on friendica.myportal. Let's see how it renders text size....

38 point text

Strikethrough

Quote the quoting quoting the quote
Unknown parent

And the Markdown and BBCode processing capabilities are different between the UI and the API endpoint that clients use. For example AFAIK I can't do stuff like:

  • An unordered list markdown
  • Text literals like this which is awesome for code
  • this is red not sure if this works from the api
in reply to Hank G ☑️

Ya, I detected a syntax error in my first attempt at text color. After I edited it properly, it works now....and now I see your comment where you pointed that out, ha. Yep--operator error.
Unknown parent

Try #2 trying to layer bold and color through Relatica that uses the API

bold and red all BBCode
bold through Markdown and red through BBCode

#2
in reply to Hank G ☑️

I do realize now that my code that goes from whatever this gets handed back to me as to something the user can edit breaks under this scenario. I think the span properties are being ripped out...have to add that to the bug report :).
in reply to Hank G ☑️

Lookin' very good! Friendica can handle the Markdown, but Diaspora still can't handle BBCode (based on my experiences in that direction).