replace link to status with link to reply function

This commit is contained in:
scuti 2024-12-08 18:14:22 -08:00
parent 52854c00a9
commit 17c5474f06

@ -446,9 +446,18 @@ function Meta(meta)
for _, v in pairs(pleroma_urls) do
local link, domain, id = get_url_from_pandoc_str(v)
host = domain
-- list of links people can reply using
local reply_href = link
if type(pleroma_reply_href) == "string" then
local temp = "https://%s%s%s"
reply_href = string.format(
temp, host, pleroma_reply_href, id)
end
table.insert(hrefs,
{link = link, id = id}
{link = reply_href, id = id}
)
local op = get_status(host, id)
table.insert(all_replies, op)
local replies = get_replies(host, id)