mirror of
https://notabug.org/scuti/pleroma-comments
synced 2025-05-31 11:21:40 +05:30
relabel images - > media
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user