|
@@ -129,10 +129,7 @@ let bot = {
|
|
// makes a post formatted for twitter
|
|
// makes a post formatted for twitter
|
|
// mastodon returns posts in HTML
|
|
// mastodon returns posts in HTML
|
|
twitterFormat: function(post) {
|
|
twitterFormat: function(post) {
|
|
- post = post.replace('<br/>', '\n') // new lines
|
|
|
|
- post = post.replace('<p>', '')
|
|
|
|
- post = post.replace('</p>', '\n')
|
|
|
|
- return post
|
|
|
|
|
|
+ return post.replace(/<[^>]*>?/gm, '')
|
|
},
|
|
},
|
|
|
|
|
|
// poll on mastodon status updates
|
|
// poll on mastodon status updates
|