为什么LinkedIn要删除状态更新“评论”字段末尾的URL?
文档()包含以下示例:为什么LinkedIn要删除状态更新“评论”字段末尾的URL?,linkedin,linkedin-api,Linkedin,Linkedin Api,文档()包含以下示例: { "comment": "Check out developer.linkedin.com!", "content": { "title": "LinkedIn Developers Resources", "description": "Leverage LinkedIn's APIs to maximize engagement", "submitted-url": "https://developer.linkedin.com",
{
"comment": "Check out developer.linkedin.com!",
"content": {
"title": "LinkedIn Developers Resources",
"description": "Leverage LinkedIn's APIs to maximize engagement",
"submitted-url": "https://developer.linkedin.com",
"submitted-image-url": "https://example.com/logo.png"
},
"visibility": {
"code": "anyone"
}
}
这一点非常有效——在最终的状态更新中,“linkedin.com”是超链接的,“开发者”。域的一部分不是超链接的。然而,这不是我关心的问题
简而言之,如果comment
以URL结尾,则该URL将从状态更新中完全删除。为了演示这一点,让我们在原始示例中添加scheme,以便LinkedIn更容易解析它(注意在域之前添加了http://
):
这本书按预期出版。但是,现在我们尝试删除尾部感叹号,如下所示:
{
"comment": "Check out http://developer.linkedin.com",
"content": {
"title": "LinkedIn Developers Resources",
"description": "Leverage LinkedIn's APIs to maximize engagement",
"submitted-url": "https://developer.linkedin.com",
"submitted-image-url": "https://example.com/logo.png"
},
"visibility": {
"code": "anyone"
}
}
发布此状态更新时,生成的注释将仅显示为:“签出”。例如:
在我看来,这是一个错误。还是我弄错了?我通常会直接将其提交给API提供商,但是。所以嗯
更新2018年1月9日:我收到一份报告说,这个bug也会在Linkedin.com上出现,而不仅仅是通过linkedinapi 更新1/12/18:由于发现这个bug在LinkedIn.com上出现,我能够帮助LinkedIn代表重现这个问题。经过一番反复之后,代表回答说: 该行为是我们的产品团队期望的功能。我无法解释原因,但这不是一个技术问题
我无法理解这到底是什么样的行为。在我看来,LinkedIn似乎在说这将被归类为“WONTFIX”。糟糕-不仅对我们,对所有LinkedIn用户也是如此。(蟋蟀的声音和门在生锈的铰链上摆动……(冬天来临……一切都静止了。)(蟋蟀的声音和门在生锈的铰链上摆动……(冬天来临……一切都静止了。)
{
"comment": "Check out http://developer.linkedin.com",
"content": {
"title": "LinkedIn Developers Resources",
"description": "Leverage LinkedIn's APIs to maximize engagement",
"submitted-url": "https://developer.linkedin.com",
"submitted-image-url": "https://example.com/logo.png"
},
"visibility": {
"code": "anyone"
}
}