From 62d04be12e25214671e18a74d152918ad9fa47ba Mon Sep 17 00:00:00 2001 From: Michael Demetriou Date: Tue, 17 Sep 2019 11:57:52 +0300 Subject: [PATCH] Fix announcements --- actor.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actor.go b/actor.go index 7b3095a..fc5327f 100644 --- a/actor.go +++ b/actor.go @@ -682,14 +682,15 @@ func (a *Actor) Unfollow(user string) { func (a *Actor) Announce(url string) { // our announcements are public. Public stuff have a "To" to the url below toURL := "https://www.w3.org/ns/activitystreams#Public" - id, hash := a.newItemID() + hash, id := a.newItemID() announce := make(map[string]interface{}) announce["@context"] = context() announce["id"] = id + announce["type"] = "Announce" announce["object"] = url - announce["actor"] = a.name + announce["actor"] = a.iri announce["to"] = toURL // cc this to all our followers one by one