GithubHelp home page GithubHelp logo

aaronpk / ownyourswarm Goto Github PK

View Code? Open in Web Editor NEW
24.0 7.0 2.0 1.68 MB

Home Page: https://aaronparecki.com/2017/03/19/7/day-89-ownyourswarm

License: MIT License

PHP 4.01% CSS 47.81% JavaScript 48.17%
indieweb foursquare swarm ownyourdata p3k

ownyourswarm's Introduction

OwnYourSwarm

After you connect your Swarm account, OwnYourSwarm will send all your Swarm checkins to your Micropub endpoint.

ownyourswarm's People

Contributors

aaronpk avatar sebsel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ownyourswarm's Issues

Differenciate between personal backfeed and swarm coin Webmentions

This is in light of the GDPR :)

It would be nice if there was some sort of switch in OwnYourSwarm, that would disable the backfeed of replies and likes done by actual people, as opposed to the webmentions sent to syndicate stickers and coins given out by Swarm itself.

It might be nicer to have the backfeed as opt-in instead of opt-out, don’t know if you agree on that one.

Keep looking for photos on past checkins

It turns out some people (myself included) will continue to add photos even after the first is added. Right now, OYG stops polling for photos as soon as one is found

Checkin created by other person should be updated after you check yourself in

Seems like when someone else checks me in (like you did here), the post is created on my site. If I then check myself in, adding a text and a photo, Swarm upgrades your checkin of me to add the details of my own checkin.

But, on my site, it seems like the photo got through (probably the photo polling) but the text did not.

I don't have logs for Micropub requests, unfortunately, so I can't check if it tried.

Add polling to backfill checkins

The realtime API does not report checkins made while "offline" or via the "forgot to check in" feature. A polling task is needed in order to backfill these checkins.

[feature request] Display the venue that contains the venue

Just adding it here.

img_9159

Since the new update, checkins show the venue where the venue is inside. (Previously, it just showed the venue you checked in to, like "Platform 1", now it says "Platform 1 at Central Station".)

I don't know how to solve this in Microformats, but I do like the display.

The 'simple' micropub option sets link as an "h"

Hi.

My check in looks like this...

<p>Checked into <a class="h-card p-location" href="h">h</a>.</p>
<div class="e-content">
Checked in at Swenson's
</div>

...whereas my previous check in, using the simple method, looked like this

<p>Checked into <a class="h-card p-location" href="https://foursquare.com/v/4ad4bff2f964a520d4e920e3">Blossom Music Center</a>.</p>
<div class="e-content">
Imagine Dragons - Josh's first concert!
</div>

Seems to be adding the description to the e-content instead of the h-entry. Is this Swarm/Foursquare not passing the info along, or something wrong OwnYourSwarm? I am also getting duplicate postings, but that's happening in Swarm.

Display the other OwnYourSwarm accounts my Foursquare account is connected to

There is this message on my dashboard and the possibility to disconnect the other accounts

This Foursquare account is connected to 1 other OwnYourSwarm accounts.

Is there a possibility to display the other accounts? I have so many test sites and real sites set up that it would be very interesting to see where else I have included this. -I can't remember.

Feature: Disable auto post to my page

I get that this is the core feature of OwnYourSwarm, but it would be great to have the possibility to deactivate the auto post. -Like all the other toggles on the dasboard.

I have the strange problem that the location data is not transferred in the auto post. With the manual import everything works smoothly.

I'm assuming it's a problem on my end, but until I figure that out, the feature is creating some chaos.

JSON request to Micro.blog

I've been posting my check-ins as the simple html form-encoded format successfully to my site hosted at Manton Reece's Micro.blog, but when I try the JSON request I get the error:

HTTP/1.1 400 Bad Request
Server: nginx/1.6.2
Date: Mon, 13 Nov 2017 12:44:12 GMT
Content-Type: application/json
Content-Length: 70
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
X-Content-Type-Options: nosniff

{"error":"invalid_request","error_description":"No content or photo."}

I'm afraid I don't know enough to tell whether this is a problem originating at the OwnYourSwarm end or if it's just that Micro.blog does not support checkins like this. Apologies for raising it here if it's a Micro.blog issue!

Include coin values in text for webmentions

if the user has their account set to "simple" mode, the webmention text should include the coin number, since they probably won't be recognizing the custom mf2 coin property in this case.

Missing access token

OwnYourSwarm is finding my checkins, but can't get them to my micropub endpoint, because it's missing an access token.

I may have skipped over a request for a token in the browser while setting it up, although I'm not sure. But I can't find any way to add a token now. I can sign out and sign back in, but there's no prompt for a token this time.

Set a comment agent

Bridgy sets a comment agent, which is handy for auto approving comments. It would be great if OWS did this as well.

Bridgy example:

Bridgy (https://brid.gy/about) AppEngine-Google; (+http://code.google.com/appengine; appid: s~brid-gy)

Provide event data to the endpoint

I noticed that for one of my checkins, the associated event data was found in the Swarm object, but isn't put into the h-entry object. It would be great if that could be added somewhere.

Micropub endpoint returning errors

I'm trying to get to work with my Wordpress site. Own Your Swarm says my account has been diesabled because the micropub endpoint has returned too many errors. When I use the indieauth plugin and run a test, I get Deprecated: filter_input(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is deprecated in /srv/data/web/vhosts/www.starshipchangeling.net/htdocs/wp-content/plugins/indieauth/authdiag.php on line 30

support PESOSing delete updates from Swarm to your own site

Support deletes from Swarm -> your site e.g.:

  • user deletes a checkin -> delete the checkin from your site
  • user deletes a photo -> delete the photo from the checkin on your site
  • user deletes a comment -> delete the comment from the checkin on your site

No feedback on failed login

Turns out my IndieAuth-flow is broken. Quill gives the following error:

indieauth_error

The authorization code was not able to be verified

OwnYourSwarm, however, just redirects me to the homepage, without any message (and also not logged in).

I think it's because this else is setting $token['auth'] to false, so the next if is not being executed (as it should), but also the error-state is not being checked.

webmentions for updated posts are out of sync

when a checkin is updated, such as when adding a photo, the swarm comments change, e.g. how many coins are awarded for a photo. The current way this works means sometimes duplicate webmentions will be sent to the post after the checkin is updated, and the webmentions have different source URLs. This can be fixed one of two ways:

  • update the comment text and send a webmention update
  • delete the previous webmentions so the new ones don't look like duplicates

Not posting checkins on Known 0.9.9-a

When I was using Known build 0.9.9 (3 days ago) I did a couple of checkins using this, and it worked only after manually importing the post.

Upgrading to 0.9.9-a it doesn't post automatically or by manual import, though the 'IndiePub' tab in Known shows it connected.

I revoked 2 instances in Known. Logged out from OYS. Logged back in and saw the token appear in Known.

screen shot 2019-01-05 at 2 57 53 pm

The OYS dashboard is collecting my checkins, but 'Import Past Checkin' doesn't post anything to my site. Preview payload all looks fine too.

I reset a past checkin and then import. Still nothing on my site.

Off the grid checkins as private posts

At the moment, off the grid checkins (does anyone use them?) are treaded like any other checkin, resulting in a public checkin on your own site and a private checkin on Swarm.

I suppose this one needs some more research for how to make a private post via Micropub.
Possible option would be visibility=private. This is how Wordpress calls it now (see https://indieweb.org/post_status)

Few questions to be answered:

  • do people use "off the grid" checkins?
  • do people support private posts?
  • how to send the private-ness through Micropub?

Posts going to incorrect micro.blog blog

I have a single micro.blog account but with multiple domains. I’ve signed in with one, and checkins start going to the correct blog, but then randomly start going to the main blog instead. This has happened multiple times and I’m at a loss on how to troubleshoot this.

Send webmentions for comments

Once polling #2 and webmention sending for coins #3 are implemented, it should be relatively simple to backfeed comments on checkins.

[bug] My latest checkin isn't hitting my servers endpoint

I haven't had issues with any other checkins. From what I can tell my endpoint is never being hit by OwnYourSwarm in my logs. The only thing I can tell that's different in my most recent checkin is that I added a hashtag (#nanowrimo17) I don't know if the # is somehow messing up ownyourswarm and it's breaking before getting pushed to my server?

The "Preview" button does show the h-entry:

{
    "type": [
        "h-entry"
    ],
    "properties": {
        "published": [
            "2017-10-12T21:18:16-04:00"
        ],
        "syndication": [
            "https://www.swarmapp.com/user/12192241/checkin/59e014583b83072f78b903a0"
        ],
        "content": [
            "Researching our books for NaNoWriMo #nanowrimo17 @ash"
        ],
        "checkin": [
            {
                "type": [
                    "h-card"
                ],
                "properties": {
                    "name": [
                        "Starbucks"
                    ],
                    "url": [
                        "https://foursquare.com/v/5421a3fb498e5af295e7c96d",
                        "http://www.starbucks.com",
                        "https://twitter.com/starbucks"
                    ],
                    "tel": [
                        "(301) 874-6017"
                    ],
                    "latitude": [
                        39.325787553009
                    ],
                    "longitude": [
                        -77.349690408015
                    ],
                    "street-address": [
                        "3410 Urbana Pike"
                    ],
                    "locality": [
                        "Urbana"
                    ],
                    "region": [
                        "MD"
                    ],
                    "country-name": [
                        "United States"
                    ],
                    "postal-code": [
                        "21704"
                    ]
                }
            }
        ]
    }
}

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.