mirror of
https://notabug.org/scuti/pleroma-comments
synced 2025-03-14 15:54:15 +05:30
replace link to status with link to reply function
This commit is contained in:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user