Recently, we (moderators on Android.SE) started adding some users' feed to our mod's chat room for moderation purposes. After a while, the users' posts were onebox-ed as expected, but then seemingly unrelated posts were too. After a quick-peek to the feed's content, we realized that it also contains the user's comments.

For illustrative purposes (click the image for full-version):

Here are 2 samples of the feed entry for the comment, one for the question:

    <title type="text">Comment by Meta Andrew T. on Why can I not log in to Stack Exchange Android app using a Google account?</title>
    <link rel="alternate" href="https://meta.stackexchange.com/questions/347348/why-can-i-not-log-in-to-stack-exchange-android-app-using-a-google-account" />

And another for the answer:

    <title type="text">Comment by Meta Andrew T. on As a workaround to Imgur being blocked, is there a image hosting site which allows URL uploads and does not violate CC BY-SA 4.0 copyright?</title>
    <link rel="alternate" href="https://meta.stackexchange.com/questions/339029/as-a-workaround-to-imgur-being-blocked-is-there-a-image-hosting-site-which-allo/339035#339035" />

There are 2 URLs mentioned on the feed:

  • <id>: the post's default URL, with ?cid=<comment_id> added
  • <link>: the post's default URL

While the <link> URL obviously will not redirect to the comment, apparently the <id> URL also does not, compared to the current comment's permalink with #comment<comment_id>_<post_id>:


or the alternative using /posts/comments/<comment_id> used in the timeline:


Considering all of these, can the link to the comment on feed be replaced with the comment's permalink instead? Presumably, this will replace the post-onebox (confusing without context) into the comment-onebox (contains the comment, the user, and the permalink to the comment).

Customizing user feeds in chat might be related, but not sure if it is a duplicate since this question focuses on fixing the comment's link instead (which might or might not help the linked feature-request)

  • So, you want to filter what is and isn't picked up by the feed more specifically than you currently do, correct? – Mast May 18 '20 at 13:07
  • @Mast not really filter, since we are okay with comments on the feed (the linked FR is more about filtering/customizing). However, comments from the feed are currently onebox-ed to their parent post instead, not the comment directly. I believe this is because the link used in the feed is the post's link, not the comment's real link. At the very least, I prefer the onebox to directly link to the comment, presumably by fixing the URL. – Meta Andrew T. May 18 '20 at 13:17
  • For keeping an eye on comments, we use a workaround in The 2nd. We use that to properly onebox comments, like this random example. – Mast May 18 '20 at 13:37
  • Related: Answer Only RSS feed for a user – Mast May 18 '20 at 13:43
  • Related: Customizing user feeds in chat – Mast May 18 '20 at 13:44

You must log in to answer this question.

Browse other questions tagged .