0
0
Fork 0

Add digest e-mails

This commit is contained in:
Eugen Rochko 2017-03-03 23:45:48 +01:00
parent f5457cc3d2
commit 6b81d10030
25 changed files with 117 additions and 32 deletions

View file

@ -29,6 +29,11 @@ class Formatter
sanitize(html, tags: %w(a br p span), attributes: %w(href rel class))
end
def plaintext(status)
return status.text if status.local?
strip_tags(status.text)
end
def simplified_format(account)
return reformat(account.note) unless account.local?