diff --git a/pleroma-comments.lua b/pleroma-comments.lua index b62550b..8124aca 100644 --- a/pleroma-comments.lua +++ b/pleroma-comments.lua @@ -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)