GithubHelp home page GithubHelp logo

Comments (7)

barnabywalters avatar barnabywalters commented on June 15, 2024

This is the correct behaviour if no explicit p-name is provided, as detailed here. It can be fixed by simply providing an explicit p-name :)

from php-mf2.

barnabywalters avatar barnabywalters commented on June 15, 2024

That blog looks great though, thanks for the link!

from php-mf2.

pfefferle avatar pfefferle commented on June 15, 2024

you're welcome :)

from php-mf2.

pfefferle avatar pfefferle commented on June 15, 2024

I've updated my theme with p-name and e-description but there is still a strange behaviour:

[type] => Array
                        (
                            [0] => h-feed
                        )

                    [properties] => Array
                        (
                            [author] => Array
                                (
                                    [0] => 
                                    [1] => 
                                    [2] => 
                                    [3] => 
                                    [4] => 
                                    [5] => 
                                    [6] => 
                                    [7] => 
                                    [8] => 
                                    [9] => 
                                )

                            [name] => Array
                                (
                                    [0] => notizBlog
                                )

                            [content] => Array
                                (
                                    [0] => a weblog about the open, portable, social, synaptic, semantic, structured, distributed, decentralized, microformatted and federated social web
                                )

                        )

It seems that the parser tries to use the h-entry "authors" for the h-feed too.

from php-mf2.

pfefferle avatar pfefferle commented on June 15, 2024

...and the author array includes only empty strings

from php-mf2.

barnabywalters avatar barnabywalters commented on June 15, 2024

@pfefferle okay, just got round to having a proper look at this. Looks like you’re installing the latest stable (tagged) version, which is from quite a while ago. The dev-master branch has the latest version in, which is much faster and more reliable, although doesn’t handle some edge case datetimes properly. This is very much a work in progress, bear with me and thanks for helping test it!

from php-mf2.

pfefferle avatar pfefferle commented on June 15, 2024

I am still confused by the parsing results. The parser still uses all h-entry authors for h-feed:

[0] => Array
                (
                    [type] => Array
                        (
                            [0] => h-feed
                        )

                    [properties] => Array
                        (
                            [author] => Array
                                (
                                    [0] => Array
                                        (
                                            [value] => Matthias Pfefferle
                                        )

                                    [1] => Array
                                        (
                                            [value] => Matthias Pfefferle
                                        )

                                    [2] => Array
                                        (
                                            [value] => Matthias Pfefferle
                                        )

and it also uses all e-contents of each h-entry for h-feed.

[content] => Array
                                (
                                    [0] => a weblog about the open, portable, social, synaptic, semantic, structured, distributed, decentralized, microformatted and federated social web
                                    [1] => 
    <img alt="" class="u-photo avatar avatar-40 photo" height="40" src="http://1.gravatar.com/avatar/b36983a5651df2c413e264ad4d5cc1a1?s=40&amp;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D40&amp;r=G" width="40"></img><p>WordPress seems to support basic <a href="http://indiewebcamp.com/comment">IndieWeb-Comments</a> out of the box!</p>
<p><small>in reply to @<a href="http://eschnou.com/entry/testing-indieweb-federation-with-waterpigscouk-aaronpareckicom-and--62-24908.html" rel="in-reply-to">eschnou.com</a></small></p>

I think this might be a general problem of nested microformats and it makes interpreting the results very hard.

from php-mf2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.