From IndieWeb
Jump to: navigation, search

Ashton McAllan

Acegiak is a web and game developer from Adelaide, South Australia.

Developing WhisperFollow

Posts to running Wordpress POSSEs to:

Wordpress IndieWeb Reply Workflow

Reads posts in WhisperFollow feed. Capture1.jpg

Clicks "reblog" button, ticks or unticks "like" and "citation" as desired. Enters any comment/reply text in the "text" box. Clicks "Go" button to submit. This sends a Webmention to the target. The new post is a regular wordpress aside in the "Whispers" category (hence the name of the plugin) with custom metadata fields added on for "context", "contextLike" and "contextTarget" which is mandatory for indieweb cross-site posts. Capture2.jpg

On blog homepage the Citation, Like and Comment/Reply are all stored and shown as a single post with combined markup. This avoids restating the target content/citation if multiple actions are taken for a single piece of content:

    <article id="post-3435" class="post-3435 post type-post status-publish format-aside category-whispers h-entry hentry h-as-note" itemprop="blogPost" itemscope="" itemtype="">
        <div class="p-like p-like-of p-in-reply-to h-cite">
            <blockquote class="p-content">
                <p><a href="">fahrenheit-469</a>:</p>
                    <p>its 2014 can we please have headphones that last more than 2 months</p>
            liked and commented and reposted
            <a class="u-url" href="">@meh: fahrenheit-469: its 2014 can we please have headphones that last more than 2 months</a>
        <div class="entry-content e-content p-summary" itemprop="name headline description articleBody">
            <p>The trail of destruction left by my desire to hear things from my computer is a terrifying sight. I’m hoping spending $80 on turtle beach headphones is the investment the audio industry demands for equipment that doesn’t mysteriously stop working after a random number of weeks.</p>
        <footer class="entry-meta">
            <a href="" title="2:38 pm" rel="bookmark" class="url u-url">
                <span class="p-name">meh: fahrenheit-469: its 2014 can we please have headphones that last more than 2 months</span>
                <time class="entry-date updated published dt-updated dt-published" datetime="2014-06-04T14:38:13+09:30" itemprop="dateModified">June 4, 2014</time>
            <address class="byline">
                <span class="sep"> by </span>
                <span class="author p-author vcard hcard h-card" itemprop="author" itemscope="" itemtype="">
                    <img src="" class="u-photo avatar user-1-avatar avatar-40 photo" width="40" height="40" alt="Avatar o[[Category:WordPress_Examples]] adding user to Category:WordPress_Examples based on /WordPress/Examplesf acegiak">
                    <a class="url uid u-url u-uid fn p-name" href="" title="View all posts by acegiak" rel="author" itemprop="url">
                        <span itemprop="name"></span>


When editing the post the Advanced Custom Fields plugin creates input fields for the IndieWeb metadata fields for posts in the Whispers category. Capture4.jpg