Skip to main content


Hey @MDN, with Stack Overflow’s ongoing community implosion, now would be an excellent time to launch MDN Answers so people have a better place to help each other learn.

https://answer.apache.org/

Edit: Or @nodebb / other ActivityPub-enabled forum/threaded discussion community server software

#WebDev

This entry was edited (6 months ago)

reshared this

in reply to Jeremiah Lee

wouldn't it be super cool to build on top of say NodeBB and make this federated?
in reply to Emelia 👸🏻

@[email protected] @[email protected] @[email protected] yep, we've been working on federation this year.

We're watching the implosion of StackOverflow with interest and would help facilitate a federated alternative if there is interest.

Tim Chambers reshared this.

in reply to julian

there is definitely interest, I have seen like 20 people post "is there a fediverse alternative to StackExchange?" this week
in reply to wakest ⁂

@[email protected] honestly I'm interested in this purely just to see how badly Mastodon will muck things up if I start sending NodeBB Q&A topics as a Question activity, because Mastodon currently uses it for Polls.

But they don't have a monopoly on using it, and I can make the argument that my use case is more in spirit to the protocol 😸

in reply to julian

@[email protected] oh I know, I'll send a Question activity, and all of the answers won't be text (as Mastodon expects, but uris to as:Note) hahahah
in reply to julian

mastodon doesn't use the Question activity type.. at lesst not in a way that would expect things to break

It supports receiving Question, but it's mostly processed as Note, it'll only create a poll if there's anyOf or oneOf present.

On the sending side, it'll send Question instead of Note if it has a poll attached.

in reply to Emelia 👸🏻

though oddly it expects, I think, Create(Question) instead of Question (which is an activity in of itself)
in reply to julian

It seems like they would be pretty easy to distinguish heuristically. A Question that bundles in multiple Answers is a poll. A Question that doesn't, or that links to an Answer, is a Q&A.

Although my preference would be for a, @/context entry that clarifies the semantics

in reply to julian

then you might get some weirdness, because for that I think you'd be sending an IRI to another object, where Mastodon expects poll options to be inline: https://github.com/mastodon/mastodon/blob/main/app/lib/activitypub/parser/poll_parser.rb
in reply to Emelia 👸🏻

arguably there's a possibility of a bug there where valid? will return true because items is an array, but options could resolve to an empty array (i.e., no "name" or "content" property on the item because it's a string & not an object

So the answer there would be to valid the values in items (anyOf/allOf) as being objects with a specific shape & type.

This entry was edited (6 months ago)
in reply to Emelia 👸🏻

@[email protected] 😈

(That's an imp smiling emoji btw, Mastodon strips it out because we send inline images)...

in reply to julian

perhaps you could go as far as limiting poll options (Note's in anyOf / oneOf) as requiring to be a single line of text in name or content?
in reply to Emelia 👸🏻

also, looks like if you send Mastodon a Question (top level, no wrapping Create), it may ignore it (will if my reading is correct).
in reply to Emelia 👸🏻

@thisismissem I agree federation would be ideal. I mistakenly thought Apache Answer already supported ActivityPub. If it does, I cannot find any reference to it anymore. I have posted a feature request: https://meta.answer.dev/questions/D1kO2/activitypub-support
in reply to Emelia 👸🏻

@thisismissem Oops. My post is “awaiting review” probably because I just signed up.