Add class=attachment to attachment links.
This commit is contained in:
parent
8f9c43343e
commit
1418d72749
2 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||
def add_attachments(text, attachments) do
|
||||
attachment_text = Enum.map(attachments, fn
|
||||
(%{"url" => [%{"href" => href} | _]}) ->
|
||||
"<a href='#{href}'>#{href}</a>"
|
||||
"<a href='#{href}' class='attachment'>#{href}</a>"
|
||||
_ -> ""
|
||||
end)
|
||||
Enum.join([text | attachment_text], "<br>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue