i fixed matrix notifs

This reverts commit af0022c30d.
This commit is contained in:
Arya 2023-08-13 15:58:34 +05:30
parent af0022c30d
commit 4f1283c3c8
Signed by untrusted user: arya
GPG Key ID: 842D12BDA50DF120

View File

@ -127,16 +127,15 @@ func SignupPage(c *fiber.Ctx) error {
// send notification to user that their reg request was sent // send notification to user that their reg request was sent
err = shoutrrr.Send(os.Getenv("PUBLAPI_EMAIL_SHOUTRRRURL")+email, "Hello "+username+",\nYour registration request has been sent.\nIt will take a maximum of 48 hours for the request to be processed.\nThank you for being part of the Project Segfault Pubnix.") // err = shoutrrr.Send(os.Getenv("PUBLAPI_EMAIL_SHOUTRRRURL")+email, "Hello "+username+",\nYour registration request has been sent.\nIt will take a maximum of 48 hours for the request to be processed.\nThank you for being part of the Project Segfault Pubnix.")
if err != nil { // if err != nil {
log.Error("Error sending email to user", err) // log.Error("Error sending email to user", err)
return c.SendStatus(fiber.StatusInternalServerError) // return c.SendStatus(fiber.StatusInternalServerError)
} // }
// send notification to admins // send notification to admins
//shoutrrrUrl := os.Getenv("PUBLAPI_NOTIFY_SHOUTRRRURL") + os.Getenv("PUBLAPI_NOTIFY_ROOMS") shoutrrrUrl := os.Getenv("PUBLAPI_NOTIFY_SHOUTRRRURL") + os.Getenv("PUBLAPI_NOTIFY_ROOMS")
shoutrrrUrl := os.Getenv("PUBLAPI_EMAIL_SHOUTRRRURL")+"contact@projectsegfau.lt"
err = shoutrrr.Send( err = shoutrrr.Send(
shoutrrrUrl, shoutrrrUrl,
"New user signup! Please review /var/publapi/users/"+username+".sh to approve or deny the user. IP: "+ip+" Email: "+email, "New user signup! Please review /var/publapi/users/"+username+".sh to approve or deny the user. IP: "+ip+" Email: "+email,