Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
microformats2: add u-featured to ActivityStreams image field
- Loading branch information
Showing
6 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"objectType": "article", | ||
"displayName": "article abc", | ||
"content": "foo bar", | ||
"image": [{"url": "http://feat/ured.jpg"}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": ["h-entry"], | ||
"properties": { | ||
"name": ["article abc"], | ||
"content": ["foo bar"], | ||
"featured": ["http://feat/ured.jpg"] | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
granary/test/testdata/article_with_photo_and_featured.as-from-mf2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"objectType": "article", | ||
"displayName": "article abc", | ||
"content": "foo bar", | ||
"image": [{"url": "http://a/png"}, {"url": "http://b/jpg"}, {"url": "http://c/gif"}] | ||
} |
9 changes: 9 additions & 0 deletions
9
granary/test/testdata/article_with_photo_and_featured.mf2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"type": ["h-entry"], | ||
"properties": { | ||
"name": ["article abc"], | ||
"content": ["foo bar"], | ||
"photo": ["http://a/png", "http://b/jpg"], | ||
"featured": ["http://b/jpg", "http://c/gif"] | ||
} | ||
} |