this post was submitted on 30 Nov 2025
132 points (97.8% liked)

PieFed Meta

2050 readers
81 users here now

Discuss PieFed project direction, provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics.

Wiki

founded 2 years ago
MODERATORS
 

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"]  
}  
you are viewing a single comment's thread
view the rest of the comments
[โ€“] julian@activitypub.space 21 points 3 weeks ago (2 children)

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.

[โ€“] rimu@piefed.social 9 points 3 weeks ago (1 children)

That would be cool!

There is an answer on the comment Note:

image

[โ€“] julian@activitypub.space 5 points 3 weeks ago (2 children)

Mm answer looks to be bool, any chance it can be an ID?

[โ€“] flamingos@feddit.uk 5 points 3 weeks ago (1 children)

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.

[โ€“] rimu@piefed.social 4 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

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!

[โ€“] flamingos@feddit.uk 4 points 3 weeks ago

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.

[โ€“] BentiGorlich@gehirneimer.de 1 points 3 weeks ago (1 children)

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?

[โ€“] julian@activitypub.space 1 points 3 weeks ago

bentigorlich@gehirneimer.de having answer be an ID also works with existing implementations because it's still truthy...

Although I think "truthy" is a purely js concept lol

[โ€“] kariboka@mastodon.social 1 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

@julian @rimu @dessalines @nutomic we could have it in Lemmy as well โค๏ธ

[โ€“] julian@activitypub.space 1 points 3 weeks ago (1 children)

rimu@piefed.social when the question is federated outward, is it of type of question? ๐Ÿ˜›

kariboka@mastodon.social

[โ€“] rimu@piefed.social 2 points 3 weeks ago

No, just a normal Page, for Lemmy compatibility.

PieFed accepts Question activities but does not send them.