Spyke
piefed_meta·PieFed MetabyRimu

What if Stack Overflow, except federated?

PieFed v1.4 will have Stack Overflow-like functionality: the person who posted a question will be able to choose which of the replies are the answer, by clicking the green tick icon in the bottom left. Chosen answer(s) then have a highlight and a green tick at the top of them.

This is off by default - communities have a checkbox on them that needs to be toggled to turn it on. So only some communities will have it.

To Lemmy instances, these questions and answers will look just like normal posts and comments, without the highlight and tick. So people using Lemmy will be able to contribute.

Designating which comment is an answer involves federating a new Activity:

{  
         "id": "https://piefed.social/activities/answer/hgb4iO4b8UAFRTn", 
         "type": "ChooseAnswer",  
         "actor": "https://piefed.socialz/u/rimu", 
         "object": "https://piefed.ngrok.app/comment/224",  
         "@context": ["https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"],  
         "audience": "https://crust.piefed.social/c/linux_questions",  
         "to": ["https://www.w3.org/ns/activitystreams#Public"],  
         "cc": ["https://crust.piefed.social/c/linux_questions"]  
}  
View original on piefed.social
lemmy.cafe

Duplicate question, this was answered here [15 years ago, outdated and completely different stack] closing

But seriously neat though lol

67

/me searches a problem, finally finding someone asking the exact question I have. Page: Can't you idiots search for anything, 2 seconds searching would have found the answer.

7
activitypub.space

NodeBB has a question and answer plugin that does something similar. We can adapt this functionality and make it work between Piefed and NodeBB as well.

One thing I'd like to see is a property on OP (or maybe the context!! 😁) designating the selected answer. Otherwise if the activity is missed then it won't ever be seen again.

25
Rimureply
piefed.social

That would be cool!

There is an answer on the comment Note:

13

Yeah, it should be an ID on the post imo, not a bool on the comment. Other users (bar mods) shouldn't be able to edit other people's data.

6
Rimureply
piefed.social

Ideologically, you're right.

But since announcing that feature I also started, finished & announced another major one and am now eying up the next one.

Onwards!

5

There's also the issue that the comment could be on a service that doesn't support this (which is all of them bar Piefed), so this won't be set. At least if this was on the post, it's within your remit and can therefore control for it.

4
gehirneimer.de

I'd like to see the answer property on the thread containing the ID of the marked answer. Any chance that this would be possible?

1

No, just a normal Page, for Lemmy compatibility.

PieFed accepts Question activities but does not send them.

2

Vernacularly, I rather have OPsChoice than ChooseAnswer because OPs in the threadiverse are often wrong in their perspectives. If it creates a flag for the Activity indicating it's what OP choose, it won't lead to Sybil attacks we are already facing.

8

Speak for yourself about the future, for me it is already here in the present! 🤩

4

Why bother posting solutions if no one's going to read them because they are undiscoverable

4

Idk I’d say default theme, but customized. I like the centered Mac style taskbar, with auto hide, and the full page app drawer. Plus a top bar with info like time and system tray.

6

You reached the end

What if Stack Overflow, except federated? | Spyke