module

Utils::Paths

Path helpers

Class methods

asset_path_for(path : String) : Ktistec::SafeURI

Returns a SafeURI for a static asset, with a cache-busting query parameter derived from the asset's contents.

Source
back_path_for(env : HTTP::Server::Context, fallback : Ktistec::SafeURI) : Ktistec::SafeURI

Returns a SafeURI for the Referer header, suitable as a redirect target.

Source
path_id_from_iri(iri : String) : String
Source

Macros

activity_path(activity = nil)
Source
actor_bookmarks_path(actor)
Source
actor_deck_pane_path(actor = nil, feed = nil, max_id = nil)
Source
actor_deck_pane_position_path(actor = nil, feed = nil)
Source
actor_deck_path(actor = nil)
Source
actor_feed_id_path(actor = nil, feed = nil)
Source
actor_feed_path(actor = nil, feed = nil)
Source
actor_feeds_path(actor = nil, drafts = false)
Source
actor_followers_path(actor)
Source
actor_following_path(actor)
Source
actor_path(actor = nil)
Source
actor_relationships_path(actor = nil, relationship = nil)
Source
actor_remote_follow_path(actor = nil)
Source
actor_rss_feed_path(actor = nil)
Source
admin_accounts_path
Source
admin_oauth_clients_path
Source
admin_oauth_tokens_path
Source
admin_path
Source
anchor(object = nil)
Source
approve_path(object = nil)
Source
asset_path(path)
Source
back_path(fallback = ::Ktistec::SafeURI.assert_safe("/"))
Source
block_actor_path(actor = nil)
Source
block_object_path(object = nil)
Source
bookmark_path(object = nil)
Source
cancel_fetch_hashtag_path(hashtag = nil)
Source
cancel_fetch_thread_path(object = nil)
Source
clear_translation_object_path(object = nil)
Source
create_translation_object_path(object = nil)
Source
current_page_path

A relative reference resolving to the current page URL.

Source
edit_actor_feed_path(actor = nil, feed = nil)
Source
edit_object_path(object = nil)
Source
everything_path
Source
fetch_quote_authorization_path(object = nil)
Source
fetch_quote_path(object = nil)
Source
filter_path(filter = nil)
Source
filters_path
Source
follow_hashtag_path(hashtag = nil)
Source
follow_mention_path(mention = nil)
Source
follow_thread_path(object = nil)
Source
fragment_path(name)

A fragment-only relative reference (#{{name}}). Resolves against the current page URL.

Source
hashtag_path(hashtag = nil)
Source
home_path
Source
inbox_path(actor = nil)
Source
mcp_actor_path(actor)
Source
mcp_information_path
Source
mcp_object_path(object)
Source
mcp_user_path(account)
Source
mention_path(mention = nil)
Source
metrics_path
Source
new_actor_feed_path(actor = nil)
Source
object_path(object = nil)
Source
object_remote_like_path(object = nil)
Source
object_remote_reply_path(object = nil)
Source
object_remote_share_path(object = nil)
Source
objects_path
Source
outbox_path(actor = nil)
Source
pin_path(object = nil)
Source
pinned_collection_path(path)
Source
poll_vote_path(question = nil)
Source
query_path(query)

A query-only relative reference (?#{query}). Resolves against the current page URL.

Source
quote_path(object = nil)
Source
refresh_remote_actor_path(actor = nil)
Source
remote_activity_path(activity = nil)
Source
remote_actor_path(actor = nil)
Source
remote_branch_path(object = nil, anchor = true)
Source
remote_interaction_path
Source
remote_object_path(object = nil)
Source
remote_thread_analysis_path(object = nil)
Source
remote_thread_path(object = nil, anchor = true)
Source
reply_path(object = nil)
Source
search_path
Source
sessions_path
Source
settings_path
Source
start_fetch_hashtag_path(hashtag = nil)
Source
start_fetch_thread_path(object = nil)
Source
stream_path(*segments, query = nil)
Source
system_path
Source
tasks_path
Source
thread_path(object = nil, anchor = true)
Source
unapprove_path(object = nil)
Source
unblock_actor_path(actor = nil)
Source
unblock_object_path(object = nil)
Source
unfollow_hashtag_path(hashtag = nil)
Source
unfollow_mention_path(mention = nil)
Source
unfollow_thread_path(object = nil)
Source
verify_quote_path(object = nil)
Source