Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

q=source is not returning valid MF2 JSON for empty properties #242

Open
jamietanna opened this issue Jan 17, 2021 · 0 comments
Open

q=source is not returning valid MF2 JSON for empty properties #242

jamietanna opened this issue Jan 17, 2021 · 0 comments

Comments

@jamietanna
Copy link

Per discussion in dshanske/indieweb-post-kinds#323 I wanted to give creating events a go through Micropub. This did successfully create a post, but looking at the output of q=source it looks like the format of the response is incorrect (returning strings instead of empty arrays):

{
  "properties": {
    "category": [

    ],
    "content": "Women In Tech February 2021\n\nThis month we welcome the fantastic Saumya Surendran to speak at Women in Tech Nottingham\n\nPlus we'll be having fun, playing some games and giving away swag and prizes.\n\nNew to
Online WiT? Read about what to expect here.\nThis is why the world isn't made for women like you and I\n\nby  Saumya Surendran\n\nSaumya will talk about how the technological world isn't made for women especially BIPOC women. This is why it is crucial for women to get into tech so that there is representation in the field.  For example, car testing is not made for women in mind and it caters for the average Caucasian man. This can lead to many accidents. This is the same for medical testing. As women it is important for us to demand representation and join the technological world to create this representation. There can be no innovation without diversity. I want this talk to encourage women to pursue tech so that they can make sure that the world is made for them.\n\nAbout Saumya\n\nSaumya Surendran\n\nSaumya is a MSc Entrepreneurship, Innovation and Management student who has a keen interest in Technology. She does not have a coding background and wasn't the smartest during A Levels. This led her to think that she should settle for less and hope that she marries someone who earns more. She convinced herself that the patriarchal role of women is something she had to fulfil. However, as she grew older she realised that it’s never too late to pursue your dreams and anyone can become a leader when they put their mind to it. She is now pursuing her MSc and hopes that she can get into the world of Technology once she graduates.",
    "end": "2021-02-04T2100+00:00",
    "location": "",
    "name": [
      "Women In Tech February 2021"
    ],
    "published": [
      "2021-01-17T19:07:24+00:00"
    ],
    "start": [
      "2021-02-04T1830+00:00"
    ]
  },
  "type": [
    "h-event"
  ]
}

Permalink: https://wp.jvt.me/?p=5

Seen with version 2.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant