Libove Blog

Personal Blog about anything - mostly programming, cooking and random thoughts

Tag: activitypub

owl-blogs 0.3.2

I've worked on some smaller features and improvements for owl-blogs.

Main Features:

  • Lists and Tags now have RSS Feeds.
  • Nicer 404 Pages

For development I took the time to setup the "end-to-end" tests using go test instead of the previous pytest setup. This vastly simplifies testing and its much quicker.

To test #ActivityPub functionality I use a small mock server, which content can be controlled during testing.

#owlblogs


#

Some crawlers try to use the (non-existing) #Mastodon API of my blog, since my blog supports #ActivityPub.

Most don't send a User-Agent or use the generic user-agent of the library they use.

"/api/nodeinfo"
"/api/v1/config"
"/api/v1/directory?limit=1"
"/api/v1/instance"
"/api/v1/instance/activity"
"/api/v1/instance/domain_blocks"
"/api/v1/instance/peers"
"/api/v1/streaming/public"
"/api/v1/timelines/public?limit=100"
"/api/v1/timelines/public?limit=40"
"/api/v3/federated_instances"


#

Next Milestone for #ActivityPub support in owl-blogs: being able to play fedi-games :D


#

When using go-ap/jsonld, to extend the context by a term use:

jsonld.WithContext(
	jsonld.Context{
		{IRI: jsonld.IRI(vocab.ActivityBaseURI)},
		{Term: jsonld.Term("Hashtag"), IRI: jsonld.IRI("https://www.w3.org/ns/activitystreams#Hashtag")},
	},
)

Instead of:

var ApEncoder = jsonld.WithContext(
	jsonld.IRI(vocab.ActivityBaseURI),
	jsonld.Context{
		{Term: jsonld.Term("Hashtag"), IRI: jsonld.IRI("https://www.w3.org/ns/activitystreams#Hashtag")},
	},
)

The latter ignores the terms.

#golang #dev #activitypub #fediverse




#

I'm not sure if this note will show up on hashtags. They are added to the #ActivityPub object, but is this sufficient for #Mastodon?

Please react to this if you saw this note due to its hashtag!

#fediverse #testing


#

owl-blogs now supports replies to entries. The content of the reply is added to the bottom of the post, similar to comments.

#ActivityPub #Fediverse


#

I can now process likes on my blog notes via #ActivityPub