ref: 7f13ce63f5e0daef4991de7f48af460fb63a7731
parent: 21d575dd095ff006b503db6a21e1bfa10871d2d1
author: penny <penny@limitedideas.org>
date: Tue Oct 28 16:24:30 EDT 2025
improve dot operator resolution
--- a/main.go
+++ b/main.go
@@ -62,6 +62,10 @@
index, content, _ := strings.Cut(arguments, " ")
+ // "." refers to most recently acted on status
+ if index == "." {+ index = lastindex
+ }
postItem, postOK := homeMap[index]
debugItem := debugMap[index]
@@ -75,10 +79,7 @@
postItem, postOK = homeMap[lastindex]
}
- // "." refers to most recently acted on status
- if !foundindex && index == "." {- index = lastindex
- }
+
var reblogger *mastodon.Status
//Okay now see if the post we end up with is a reblog
if postOK {@@ -464,7 +465,7 @@
fmt.Printf("Error updating settings\n")return
}
- fmt.Printf("No longer showing RTs from <%s>", account.Acct)+ fmt.Printf("No longer showing RTs from <%s>\n", account.Acct)return
}
//Turn them back on if they were off!
@@ -473,7 +474,7 @@
fmt.Printf("Error updating settings\n")return
}
- fmt.Printf("Now showing RTs from <%s>", account.Acct)+ fmt.Printf("Now showing RTs from <%s>\n", account.Acct)return
case "rt":
rtfunc := func() {--
⑨