don't care about Listen
Ted Unangst tedu@tedunangst.com
Tue, 28 Nov 2023 15:50:22 -0500
1 files changed,
10 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -413,8 +413,17 @@ return
} what := firstofmany(j, "type") obj, _ := j.GetString("object") - if what == "Like" || what == "Dislike" || (what == "EmojiReact" && originate(obj) != serverName) { + switch what { + case "Like": + return + case "Dislike": + return + case "Listen": return + case "EmojiReact": + if originate(obj) != serverName { + return + } } who, _ := j.GetString("actor") if rejectactor(user.ID, who) {