From b565e7e96543aa8ae7c734ad7924c3c140d6011f Mon Sep 17 00:00:00 2001 From: nekobit Date: Tue, 11 Oct 2022 03:14:07 +0000 Subject: [PATCH] Profile link FossilOrigin-Name: 16522419b8e0f246b6cd04a3c7e71ef1e7844a8c72e3dcf42eeca64f5c788f19 --- src/protocol/activitypub/activitypub.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocol/activitypub/activitypub.cpp b/src/protocol/activitypub/activitypub.cpp index 1ab93eb..6053af1 100644 --- a/src/protocol/activitypub/activitypub.cpp +++ b/src/protocol/activitypub/activitypub.cpp @@ -182,6 +182,7 @@ HTTP::Response Route::ActivityPub::user(std::any& args, const HTTP::Request& req const std::string user_url = Instance::instance_host_https(true) + "users/" + user.acct; root.AddMember("type", "Person", a); root.AddMember("id", user_url, a); + root.AddMember("url", user_url, a); root.AddMember("name", user.display_name, a); root.AddMember("preferredUsername", user.acct, a); root.AddMember("summary", user.bio, a);