Skip to main content


Postbox Add-Ons for Friendica


This entry was edited (5 days ago)
@Pygoscelis Papua Nice work! How are these postboxes looking on Mastodon?
They just look like regular posts. The <span> transfers but the class="postbox-..." gets stripped out. And even if the classname wasn't stripped Mastodon (or any other platform) would not have the stylesheet to show them as postboxes anyway. Much like the Facebook version that inspired them, they only work within this platform. People can always do what people do with the Facebook ones though, screencap them and share the images on other platforms. 😉
This entry was edited (4 days ago)
@Pygoscelis Papua Thanks, I didn't expect the graphics to work on Mastodon but at least the text should show like a regular post, which you confirmed. 😊
Apparently Disapora has the opposite problem, it's showing the raw code:
Can anyone confirm what Postboxes look like when shared to various other platforms like Hubzilla, GNUsocial, Bluesky, etc.? I'm assuming all the ActivityPub platforms are handling it similarly to Mastodon but I have no way to check any others.

@Pygoscelis Papua

Post to Bluesky

Post to tumblr

Post to e-Mail

Post to Hubzilla

Norddeutscher Bürger

Post to Diaspora

This entry was edited (4 days ago)

Thank you @Matthias !

Now I guess the question for the ones that are messed up is whether the problem is in how Friendica sends the post data or if it's how the platform that receives it is parsing it?

I tried looking through the Friendica code myself trying to find where post data gets processed to send to each other platform and I can't make head nor tail of it. Though I did run across a comment that [class] was "deprecated since 2021.12, left for backward-compatibility reasons" but doesn't way why it was deprecated. I hope it doesn't get removed because it's also how I'm making the "Cover Photos" work in Bookface.

@Pygoscelis Papua @Matthias It was probably deprecated because of the absence of remote system support for it. These Friendica-specific classes are at odds with a platform that intends on being as compatible as possible with other decentralized social networks,

Since the BBcode is replaced with <span>...</span> shouldn't it be trivial to simply send the wrapped content without the wrapper to other platforms?

Like the difference between:
$text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '<span class="$1">$2</span>', $text); and $text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '$2', $text);

@Pygoscelis Papua @Matthias We have a specific processing for Diaspora because it expects Markdown but otherwise it's converted in HTML for all the other remote platforms.