f5e84e7fe357 — Ted Unangst 30 days ago
additional processing only for some activities
1 files changed, 11 insertions(+), 9 deletions(-)

M activity.go
M activity.go +11 -9
@@ 1725,15 1725,17 @@ func honkworldwide(user *WhatAbout, honk
 				rcpts[h.XID] = true
 			}
 		}
-		for _, f := range getbacktracks(honk.XID) {
-			if f[0] == '%' {
-				rcpts[f] = true
-			} else {
-				box, ok := boxofboxes.Get(f)
-				if ok && box.Shared != "" {
-					rcpts["%"+box.Shared] = true
+		if honk.What == "update" {
+			for _, f := range getbacktracks(honk.XID) {
+				if f[0] == '%' {
+					rcpts[f] = true
 				} else {
-					rcpts[f] = true
+					box, ok := boxofboxes.Get(f)
+					if ok && box.Shared != "" {
+						rcpts["%"+box.Shared] = true
+					} else {
+						rcpts[f] = true
+					}
 				}
 			}
 		}

          
@@ 1741,7 1743,7 @@ func honkworldwide(user *WhatAbout, honk
 	for a := range rcpts {
 		go deliverate(user.ID, a, msg)
 	}
-	if honk.Public && len(honk.Onts) > 0 {
+	if (honk.What == "honk" || honk.What == "bonk") && honk.Public && len(honk.Onts) > 0 {
 		collectiveaction(honk)
 	}
 }