Add digest e-mails
This commit is contained in:
parent
f5457cc3d2
commit
6b81d10030
25 changed files with 117 additions and 32 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue