poppastring,
@poppastring@dotnet.social avatar

Has anyone implemented Activity Pub with ASP.NET Core?

Not just types and objects but something that could be used for basic federation.

#activitypub #csharp #aspnet #aspnetcore

KristofferStrube,
@KristofferStrube@hachyderm.io avatar

@poppastring I have implemented a class library for the types as you mention secondly: https://github.com/KristofferStrube/ActivityStreams

But I have also used it to create a simple bot that takes my blog posts and serves them in its outbox here: https://github.com/KristofferStrube/ActivityPubBotDotNet

The above is used for the bot @Bot which you can subscribe to and unsubscribe to, but I have not implemented the Activity Create event still which is the part that is needed in order for activities like Notes to appear on other platforms like Mastodon.

KristofferStrube,
@KristofferStrube@hachyderm.io avatar

@poppastring to show that the above Outbox is correct I've also implemented a page in Blazor that can search in the last X Activities made by a user here: https://kristofferstrube.github.io/Blazor.FileSystem/SearchMastodon

The above page auto-fills the identifier for my bot, but you can try it on your own identifier instead of you want which will work.

poppastring,
@poppastring@dotnet.social avatar

@KristofferStrube This is awesome, I will check it out. Thanks for sharing! 👍🏿

SmartmanApps,
@SmartmanApps@dotnet.social avatar
mapache,
@mapache@hachyderm.io avatar

@SmartmanApps @poppastring my guide is based in dotnet (https://maho.dev/2024/02/a-guide-to-implement-activitypub-in-a-static-site-or-any-website/) here is the code: https://github.com/mahomedalid/almost-static-activitypub

Altho I am using Azure Functions could be easily adapted for ASP.net

poppastring,
@poppastring@dotnet.social avatar

@mapache @SmartmanApps Thanks, I will check it out!

poppastring,
@poppastring@dotnet.social avatar

@mapache @SmartmanApps 15 minutes of reading and I am convinced this is exactly what I was looking for!!!! 👍🏿😊

styx31,
@styx31@dotnet.social avatar

@mapache @SmartmanApps @poppastring I think @jenniferplusplus also started a c# project aimed at building an ActivityPub microblogging platform.

jenniferplusplus,
@jenniferplusplus@hachyderm.io avatar

@styx31 @mapache @SmartmanApps @poppastring I did, do that, yes. http://letterbookhq.com

It depends on the generic AP types library at https://github.com/warriordog/ActivityPubSharp

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines