gemini mention misfin body
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Arnas Udovic 2025-03-28 21:17:32 +02:00
parent 812af32757
commit e5f39eb0e7

View file

@ -72,6 +72,9 @@ func ProcessMention(remoteUrl string, pageId string) (bool, error) {
db.CreateNode("mentions." + pageId)
db.CreateNode("mentions." + pageId + ".mentions")
}
message := "# Naus gemini patiemėjėms " + hostname + "\n=> gemini://" + hostname + "/r/" + pageId + " Spausk nūruoda i puslapi parveizetė\n\nPamėnavuojėma:\n"
for _, link := range links {
id, err := db.AddObject("mentions." + pageId + ".mentions")
if err != nil {
@ -79,12 +82,11 @@ func ProcessMention(remoteUrl string, pageId string) (bool, error) {
}
db.Save("mentions."+pageId+".mentions."+id+".url", extractUrl(link))
db.Save("mentions."+pageId+".mentions."+id+".reviewed", STATUS_MENTION_NOT_REVIEWED)
message += fmt.Sprintf("=> %s\n", extractUrl(link))
}
message := "# Naus gemini patiemėjėms " + hostname + "\n=> gemini://" + hostname + "/r/" + pageId + " Spausk nūruoda i puslapi parveizetė\n\nPamėnavuojėma:\n=> " + strings.Join(
links,
"\n=> ",
)
message += "\nau/\n"
err = SendMisfinMessage(message, ZORDSDAVINI_MISFIN)
if err != nil {