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.
-
@[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.
-
replied to julian on last edited by
@julian @thisismissem @Jeremiah @flyboy there is definitely interest, I have seen like 20 people post "is there a fediverse alternative to StackExchange?" this week
-
@[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
-
replied to julian on last edited by
@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.
-
replied to julian on last edited by
-
@[email protected] theoretically a Q&A site would bundle in answers, so we'd send
anyOf
oroneOf
too! -
replied to julian on last edited by
@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
-
replied to Emelia 👸🏻 on last edited by [email protected]
@julian 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.