module Cryap::ActivityPub

Overview

ServiceActor needed to fetch activities.

Defined in:

services/activitypub/pipelines.cr
services/activitypub/service_actor.cr
services/activitypub/types.cr

Constant Summary

CONTEXT = JSON::Any.new([JSON::Any.new("https://www.w3.org/ns/activitystreams")])
ITEMS_PER_PAGE = 20
Log = ::Log.for("Cryap::ActivityPub")
PUBLIC = "https://www.w3.org/ns/activitystreams#Public"

Class Method Summary

Class Method Detail

def self.construct_to_cc(post : Post) #

def self.from_boost(json : JSON::Builder, boost : Boost) #

def self.from_post(json : JSON::Builder, post : Post, to_cc = construct_to_cc(post)) #

def self.from_post_create(json : JSON::Builder, post : Post) #

def self.from_user(json : JSON::Builder, user : LocalAccount) #

def self.save_note(note : JSON::Any, limit = MAX_NESTED_POSTS) #