您好,
我想查看在“‘top referred topics’”中显示的帖子的确切链接。有人能指导我如何在数据浏览器中查看此数据吗?
您好,
我想查看在“‘top referred topics’”中显示的帖子的确切链接。有人能指导我如何在数据浏览器中查看此数据吗?
这是您在寻找的吗?
只是为了弄清楚,您想要实际的 URL 而不是漂亮的标题?例如 https://meta.discourse.org/t/how-to-see-exact-link-of-top-referred-topics/275250 而不是 How to see exact link of ‘top referred topics’
不,我想查看推荐主题的链接。它只显示主题 URL。我想要的是查看线程中共享的评论或帖子的 URL,就像这个链接一样:
示例:https://meta.discourse.org/t/how-to-see-exact-link-of-top-referred-topics/275250/2
我想知道帖子的哪个帖子被分享了,但它只显示主题 URL,而不是在推荐主题中被分享和点击的特定帖子。
这个可以满足要求吗?
--[params]
-- date :start_date
-- date :end_date
SELECT
'https://meta.discourse.org/' || 't/' || t.slug || '/' || t.id || '/' || p.post_number AS post_url,
COUNT(*) AS external_click_count
FROM incoming_links il
INNER JOIN posts p ON p.id = il.post_id
INNER JOIN topics t ON t.id = p.topic_id
WHERE t.archetype = 'regular'
AND il.created_at::date BETWEEN :start_date AND :end_date
GROUP BY p.id, t.id
ORDER BY external_click_count DESC
(不过请将 https://meta.discourse.org 替换为您自己的网站链接
)
谢谢,它奏效了,你太棒了。 ![]()
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.