App-ActivityPubClient

 view release on metacpan or  search on metacpan

lib/App/ActivityPubClient.pm  view on Meta::CPAN


	if ($object->{$key}) {
		print_ref($indent, $object->{$key}, $key);
	}
}

sub print_object {
	my ($indent, $object) = @_;

	my @regular_keys =
	  qw{url subtitleLanguage context inbox outbox prev next published updated summary content bcc bto cc to object attachment tag orderedItems mediaType};

	printf "%*s %s",     $indent, '⇒', $object->{"type"};
	printf ' id:<%s>',   $object->{"id"}   if $object->{"id"};
	printf ' href:<%s>', $object->{"href"} if $object->{"href"};
	printf ' “%s”',      $object->{"name"} if $object->{"name"};
	printf ' @%s', $object->{"preferredUsername"}
	  if $object->{"preferredUsername"};
	printf ' âš ' if ($object->{"sensitive"} eq JSON->true);
	foreach (@regular_keys) {
		print_object_key($indent, $object, $_);

t/pleroma_user.json  view on Meta::CPAN

{"@context":["https://www.w3.org/ns/activitystreams","https://queer.hacktivis.me/schemas/litepub-0.1.jsonld",{"@language":"und"}],"alsoKnownAs":[],"attachment":[],"capabilities":{"acceptsChatMessages":true},"discoverable":true,"endpoints":{"oauthAuth...

t/pleroma_user.out  view on Meta::CPAN

⇒ Person id:<https://queer.hacktivis.me/users/lanodan> “Haelwenn /элвэн/ :triskell: ” @lanodan
 url: https://queer.hacktivis.me/users/lanodan
 inbox: https://queer.hacktivis.me/users/lanodan/inbox
 outbox: https://queer.hacktivis.me/users/lanodan/outbox
 summary: ---<br/>Website: <a href="https://hacktivis.me/">https://hacktivis.me/</a><br/>Lang: Français(natif), English(fluent), LSF(🤏~👌), русский (еле-еле)<br/>Donate via LiberaPay: <a href="https://liberapay.com/lanodan_">https:...
 tag: 
    ⇒ Emoji id:<https://queer.hacktivis.me/emoji/custom/symbols/anarchy.png> “:anarchy:”
     updated: 1970-01-01T00:00:00Z
    ⇒ Emoji id:<https://queer.hacktivis.me/emoji/custom/gentoo.png> “:gentoo:”
     updated: 1970-01-01T00:00:00Z
    ⇒ Emoji id:<https://queer.hacktivis.me/emoji/stolen/sun.png> “:sun:”
     updated: 1970-01-01T00:00:00Z
    ⇒ Emoji id:<https://queer.hacktivis.me/emoji/custom/breizh/triskell.png> “:triskell:”
     updated: 1970-01-01T00:00:00Z



( run in 0.285 second using v1.01-cache-2.11-cpan-05444aca049 )