misfin send message #2
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
33b6f33f89
commit
703989a4b3
1 changed files with 10 additions and 2 deletions
12
mention.go
12
mention.go
|
@ -87,11 +87,19 @@ func ProcessMention(remoteUrl string, pageId string) (bool, error) {
|
|||
links,
|
||||
"\n=> ",
|
||||
)
|
||||
certFile, _ := os.ReadFile("./identities/alkierios.misfin.pem")
|
||||
certFile, err := os.ReadFile("./identities/alkierios.misfin.pem")
|
||||
if err != nil {
|
||||
return false, fmt.Errorf("[gemini-mentions] couldn't read misfin sert: %s", err)
|
||||
}
|
||||
client := misfin_client.Client{}
|
||||
resp, err := client.SendWithCert("misfin://zordsdavini@arns.lt", certFile, certFile, message)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
return false, fmt.Errorf(
|
||||
"[gemini-mentions] couldn't send misfin message\n%s\n%s\n%s",
|
||||
message,
|
||||
certFile,
|
||||
err,
|
||||
)
|
||||
}
|
||||
|
||||
fmt.Printf(
|
||||
|
|
Loading…
Add table
Reference in a new issue