diff --git a/accounts/mastodon/mastodon.go b/accounts/mastodon/mastodon.go
index 2ae7565..998e669 100644
--- a/accounts/mastodon/mastodon.go
+++ b/accounts/mastodon/mastodon.go
@@ -5,7 +5,7 @@ import (
"context"
"fmt"
"log"
- "time"
+ "regexp"
"github.com/davecgh/go-spew/spew"
"github.com/mattn/go-mastodon"
@@ -147,8 +147,12 @@ func handleReplyStatus(status string) string {
return status
}
-func parsePost(ev *accounts.MessageEvent) {
- return
+func parseBody(body string) string {
+ r := regexp.MustCompile("(.[^<]*)")
+ body = r.ReplaceAllString(body, "")
+
+ r = regexp.MustCompile("(.[^<]*)")
+ return r.ReplaceAllString(body, "$1...")
/*
for _, u := range ents.Urls {