Ktistec::ViewHelper::ClassMethods
Constants
Instance methods
Classifies an activity time into a liveness signal.
Derives visibility and to/cc addressing from the "visibility" param.
Returns the cursor value (max or min) from the query.
Accepts both the underscore and hyphen spellings.
Renders arbitrary text or HTML with the subject's custom emojis interpolated and the result sanitized.
Pass emojis: to reuse a pre-fetched emoji set.
Renders subject.display_name with the subject's custom emojis
interpolated and the result sanitized.
Pass emojis: to reuse a pre-fetched emoji set.
Returns the name and summary to display for an object.
Long content that has no summary of its own gets a generated one -- the beginning of the content -- so that the body is collapsed when the object is rendered in a feed.
Normalizes params into a consistent hash format.
Normalizes params into a consistent hash format.
Returns a tuple of {count, color, tooltip} for actor notifications.
Renders an ActivityPub object.
Parameters:
env: HTTP request environment.object: The ActivityPub object to render.actor: The actor who performed the activity (defaults to object'sattributed_to). May differ from author.author: The original author of the object (defaults toactor).activity: Optional activity containing this object (e.g., Like, Announce).with_detail: Renders expanded view with additional metadata.as_context: Indicates this object is being shown to provide context for (or is part of) the main content, not as the primary interactive element.show_quote: Whether or not to render quoted content (defaults to true).for_thread: Collection of objects in thread; enables thread view rendering.for_actor: Actor for whom view is being rendered.highlight: Whether or not to highlight this object in the feed.themed: Whether or not to emit custom-theme metadata (feed rendering only; ignored whenfor_thread/with_detailis set).scope: Prefix for the element's id.
Prefixes a DOM id with a scope, when one is given.
Derives visibility from to/cc addressing.
If the object has explicit addressing, uses that. Otherwise, if the object is a reply, inherits from the parent: public posts are public, everything else is direct. Otherwise, defaults to public.