Liquid Guide: Idea Object

An idea has the following attributes:

Core Attributes


id


The id of the idea.

type


The string ‘idea’.

link


A link to this idea with the title as the link text.

title (HTML-escaped)


The title.

body (HTML)


The body.

body_raw


The raw body contents.

summary


A truncated 300-character version of the body with HTML tags removed.

source_url (HTML-escaped)


The source URL input by the poster.

posted_at


The timestamp when the idea was posted.

positives_count


The number of people who said they’d like to read it if this idea is turned into a story.

negatives_count


The number of people who said they wouldn’t read a story based on this idea.

points


The sum of positives_count and negatives_count.

state


The state of the idea: Pending, Accepted, Rejected, In Production, Published, On Hold.

Permissions


editable_by_current_user?


Whether this idea is currently editable by this user. Ideas can be edited by their poster for 15 minutes after posting.

Associations


authors ([[User object]])


An array containing the poster of the idea. Made available so ideas and stories can be handled by the same templating code.

poster ([[User object]])


The user posting the idea. May be null for ideas submitted via trackback.

comments ([[Comment object]])


The comments on this idea.

story ([[Story object]])


The story, either in production or published, that is the outcome of this idea. May be null.

URLs


url


The URL of this idea.

edit_url


The URL to edit the idea.

rate_url


The URL to submit a rating of this idea to.

admin_edit_url


The URL for an admin to edit the idea.