{"action":"created","issue":{"url":"https://api.github.com/repos/pfefferle/wordpress-semantic-linkbacks/issues/21","labels_url":"https://api.github.com/repos/pfefferle/wordpress-semantic-linkbacks/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/pfefferle/wordpress-semantic-linkbacks/issues/21/comments","events_url":"https://api.github.com/repos/pfefferle/wordpress-semantic-linkbacks/issues/21/events","html_url":"https://github.com/pfefferle/wordpress-semantic-linkbacks/issues/21","id":61741206,"number":21,"title":"when source contains both semantic link and mention, prioritize semantic link","user":{"login":"snarfed","id":778068,"avatar_url":"https://avatars.githubusercontent.com/u/778068?v=3","gravatar_id":"","url":"https://api.github.com/users/snarfed","html_url":"https://github.com/snarfed","followers_url":"https://api.github.com/users/snarfed/followers","following_url":"https://api.github.com/users/snarfed/following{/other_user}","gists_url":"https://api.github.com/users/snarfed/gists{/gist_id}","starred_url":"https://api.github.com/users/snarfed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snarfed/subscriptions","organizations_url":"https://api.github.com/users/snarfed/orgs","repos_url":"https://api.github.com/users/snarfed/repos","events_url":"https://api.github.com/users/snarfed/events{/privacy}","received_events_url":"https://api.github.com/users/snarfed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-15T04:00:51Z","updated_at":"2015-04-13T07:39:53Z","closed_at":null,"body":"i recently ran into this when all of the bridgy webmentions on a post of mine showed up as plain mentions instead of favorites, retweets, etc: https://snarfed.org/2015-03-07_huffduff-video\r\n\r\nin this specific case, the bridgy source mf2 for each response has both a mention link and a like/repost/etc link, e.g. https://brid-gy.appspot.com/repost/twitter/schnarfed/574460993398427649/574962900458205184 :\r\n\r\n```html\r\n<div class=\"e-content\">\r\nRT <a href=\"https://twitter.com/schnarfed\">@schnarfed</a>: huffduff-video lets you send @Huffduffer the audio from videos on YouTube, Vimeo, and more! snarfed.org/2015-03-07_huf… huffduff-video.snarfed.org\r\n<a class=\"u-mention\" href=\"https://snarfed.org/2015-03-07_huffduff-video\"></a>\r\n</div>\r\n<a class=\"u-repost u-repost-of\" href=\"https://twitter.com/schnarfed/status/574460993398427649\"></a>\r\n```\r\n\r\nwhen the plugin handles this mf2, it sees the `u-mention` link first, so it stores `semantic_linkbacks_type = mention` in `wp_commentmeta` and the wordpress comment gets rendered as a mention. if i remove the mention link and resend the webmention, it sees the `u-repost-of` link and correctly stores `semantic_linkbacks_type = repost`.\r\n\r\nit should probably instead look at all of the links to target in the mf2, and if any of them are semantic, those should be prioritized over mention, right?\r\n\r\nthanks in advance! cc @dshanske"},"comment":{"url":"https://api.github.com/repos/pfefferle/wordpress-semantic-linkbacks/issues/comments/92253297","html_url":"https://github.com/pfefferle/wordpress-semantic-linkbacks/issues/21#issuecomment-92253297","issue_url":"https://api.github.com/repos/pfefferle/wordpress-semantic-linkbacks/issues/21","id":92253297,"user":{"login":"pfefferle","id":2373,"avatar_url":"https://avatars.githubusercontent.com/u/2373?v=3","gravatar_id":"","url":"https://api.github.com/users/pfefferle","html_url":"https://github.com/pfefferle","followers_url":"https://api.github.com/users/pfefferle/followers","following_url":"https://api.github.com/users/pfefferle/following{/other_user}","gists_url":"https://api.github.com/users/pfefferle/gists{/gist_id}","starred_url":"https://api.github.com/users/pfefferle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfefferle/subscriptions","organizations_url":"https://api.github.com/users/pfefferle/orgs","repos_url":"https://api.github.com/users/pfefferle/repos","events_url":"https://api.github.com/users/pfefferle/events{/privacy}","received_events_url":"https://api.github.com/users/pfefferle/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T07:39:53Z","updated_at":"2015-04-13T07:39:53Z","body":"the version 3.1.0 should work better, but I think I have to implement a prio list if I find the time..."}}