Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AS2: support polls #174

Open
snarfed opened this issue Oct 21, 2019 · 4 comments
Open

AS2: support polls #174

snarfed opened this issue Oct 21, 2019 · 4 comments

Comments

@snarfed
Copy link
Owner

snarfed commented Oct 21, 2019

API docs: entities, endpoints. would need to figure out how to represent them in AS1.

@snarfed
Copy link
Owner Author

snarfed commented Feb 25, 2020

looks like this would be objectType question in AS1:

Represents a question or a poll. Objects of this type MAY contain an additional options property whose value is an Array of possible answers to the question in the form of Activity Stream objects of any type.

...and type Question in AS2:

The Question object can be used to express various types of inquiries. For instance, simple open-ended questions similar to those posted to crowd-sourced question and answer websites...Multiple-choice questions or "polls" are also supported using either the oneOf or anyOf properties.

@snarfed
Copy link
Owner Author

snarfed commented Jan 31, 2023

This might be higher priority now that we're rendering Mastodon posts in Bridgy Fed feeds.

@snarfed snarfed changed the title Mastodon: support polls AS2: support polls Jan 31, 2023
@snarfed
Copy link
Owner Author

snarfed commented Apr 16, 2023

Remaining work here is rendering in HTML and plain text, ie AS1 => HTML, RSS, Atom, JSON Feed.

Example post:

@snarfed
Copy link
Owner Author

snarfed commented Apr 17, 2023

The quick and dirty path here would be to add this to microformats2.render_content. The deeper path would be to figure out the mf2 for polls, add that to microformats2.object_to_json, then add the HTML rendering to json_to_html. I'd probably be ok with either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant