Bonfire.Poll.Questions (Bonfire v1.0.1-social-alpha.28)
View SourceSummary
Functions
Serializes a poll question as an ActivityStreams Question object and wraps in a Create/Update activity for federation.
Receives an incoming ActivityPub Question (poll) activity and creates/updates the local poll question.
Callback implementation for Bonfire.Federate.ActivityPub.FederationModules.federation_module/0.
List posts created by the user and which are in their outbox, which are not replies
List posts with pagination
Returns true if proposal period has ended for the poll.
Returns true if proposal period is currently open for the poll.
Callback implementation for Bonfire.Common.ContextModule.query_module/0.
Query posts with pagination
Callback implementation for Bonfire.Common.ContextModule.schema_module/0.
Returns true if voting has ended for the poll.
Returns true if voting is currently open for the poll.
Functions
Serializes a poll question as an ActivityStreams Question object and wraps in a Create/Update activity for federation.
Parameters
- subject: who is performing the action
- verb: :create or :update
- question: poll question struct
Receives an incoming ActivityPub Question (poll) activity and creates/updates the local poll question.
Parameters
- creator: the actor creating/updating the poll
- activity: the AP activity
- object: the AP Question object
Callback implementation for Bonfire.Federate.ActivityPub.FederationModules.federation_module/0.
List posts created by the user and which are in their outbox, which are not replies
List posts with pagination
Returns true if proposal period has ended for the poll.
Returns true if proposal period is currently open for the poll.
Callback implementation for Bonfire.Common.ContextModule.query_module/0.
Query posts with pagination
Callback implementation for Bonfire.Common.ContextModule.schema_module/0.
Returns true if voting has ended for the poll.
Returns true if voting is currently open for the poll.