Adding full Article support

This creates a new column in the `statuses` table which keeps track of
activity_pub_type, so in the case of a Note it will be blank (the
default) and it will be a string "Article" if the received remote object
is an AP Article. There is now a bunch of special case code in the
formatters and sanitizers to handle Articles differently, as well as on
the clientside.
This commit is contained in:
Darius Kazemi
2019-05-05 16:59:04 -07:00
parent b3e65978b4
commit 0436aa9984
8 changed files with 34 additions and 9 deletions

View File

@ -92,6 +92,7 @@ class Formatter
def format_article(text)
text = text.gsub(/>\n+</, "><")
text = "<span class='article-type'>#{text}</span>"
text.html_safe # rubocop:disable Rails/OutputSafety
end