relabel images - > media

This commit is contained in:
2024-11-27 22:01:27 -08:00
parent 38d67e0601
commit 7cddab04b7

View File

@ -115,7 +115,7 @@ function write_comments(pleroma_posts, instance, show_avatars)
if #attachments < 1 then if #attachments < 1 then
return "" return ""
end end
local media_list = {"<p>images attached: </p><ol>"} local media_list = {"<p>media attached: </p><ol>"}
local item = "<li><a href=\"$link$\">$mime$</a></li>" local item = "<li><a href=\"$link$\">$mime$</a></li>"
for _, v in pairs(attachments) do for _, v in pairs(attachments) do
local vars = { local vars = {
@ -127,7 +127,6 @@ function write_comments(pleroma_posts, instance, show_avatars)
table.insert(media_list, foo) table.insert(media_list, foo)
end end
table.insert(media_list, "</ol>") table.insert(media_list, "</ol>")
printTable(media_list)
return table.concat(media_list, "\n") return table.concat(media_list, "\n")
end end