indieweb / indieweb/authorship

Step 7 when there is no uid or rel=me?

Open
#3 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I just spent a while tracking down this very interesting case that came up trying to track down why Jacky's photo was not appearing in the RSVP to IndieWebCamp Austin.

Here is a simplified version of his markup.

`http://example.com/2020-02-18`

```html


Author Name

Hello World



```

As seen above, this is a typical `h-entry` where the author property is a link to the home page rather than duplicating author info there.

`http://example.com`

```html

Latest Stuff


First Note




Second Note




```

This home page has an `h-card` at the top, and an `h-feed` below with a few posts in it. The thing that's unique to this example which the authorship algorithm failed at is that there is no `uid` or `rel=me` on that home page `h-card`. Those are described in step 7.2 and 7.3 respectively, which would have correctly found the author here.

My question is whether this markup should be something that the authorship algorithm should support, or whether this is something to suggest to the site author to change.

I was able to implement a fix for this in my implementation relatively easily. After step 7.3, I added a new case:

* if _author-page_ has exactly one `h-card`, and that `h-card` has `url` == _author-page_'s URL, then use that `h-card`, exit.

This does have some other implications, and caused two of my tests to fail. However, I'm not sure the failure in the tests was actually wrong. The reason they failed is because adding this new step meant XRay was now able to use the home page `h-card` instead of the embedded `h-card` on the post permalink. It didn't cause any new network requests to happen because it had already fetched the home page by the point it got to step 7.

Sorry for this long explanation of a pretty subtle situation.

**Summary: update the authorship algorithm to add the proposed text in the bullet point above between step 7.3 and 7.4 of the existing algorithm.**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the existing authorship algorithm, especially step 7. Review the tests that currently fail when the home-page h-card is selected instead of the embedded post h-card. Add the proposed case between steps 7.3 and 7.4, then update the tests so they reflect the intended authorship result.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.