Giter Club home page Giter Club logo

indiepub's Introduction

Build Status Backers on Open Collective

Known: a social group platform

Known - A social group platform

Installation

One-click Known sites

If you want to install on your own web space, we recommend Reclaim Hosting, which includes one-click Known installation. Known is also known to work on DreamHost, a high-quality web hosting provider.

Installing

Known is under active development and requires PHP 8.1+ with selected extensions, together with a supported database backend. You can find detailed installation instructions here: http://docs.withknown.com/en/latest/install/index.html

Installing from packages

Unofficial install packages, which are periodically built from the latest code, are available: https://www.marcus-povey.co.uk/known/

Installing from Github

You can opt to check out the work-in-progress development code from the git repository: https://github.com/idno/known

  • Check out the repo: git clone https://github.com/idno/known.git
  • Fetch dependencies: cd known; composer install

Installing with composer

You can install Known directly from composer using: composer create-project idno/known

Optionally, you can install the latest bleeding edge code the same way: composer create-project idno/known -s dev

Support us

If you find this project useful, and you really want to support us, you can now fund us on OpenCollective.

Get support

Community links

For details on contributing to the Known project, please read CONTRIBUTING.md.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! ๐Ÿ™ [Become a backer]

Copyright and License

Except for included third-party projects, Known is (c) Known, Inc.

Unless otherwise stated, Known is licensed under the Apache Software License 2.0. See LICENSE for more information.

Known logos are (c) Known, Inc. Permission from Known, Inc is required to use the Known name or logo as part of any project, product, service, domain or company name, except as included in official themes distributed by Known.

Logos of external services are (c) their respective owners. All rights reserved.

Third party libraries are licensed separately.

Known also contains

Thank you

BrowserStack Logo

Thanks to BrowserStack for providing the infrastructure that allows us to test in real browsers.

indiepub's People

Contributors

aaronpk avatar benwerd avatar cdn avatar davidmead avatar kylewm avatar lindner avatar mapkyca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

indiepub's Issues

Notes and micropub clients

When micropub clients send HTML to be published as a note the rich text editor built into status updates renders the HTML as plain text.

[Micropub] Error posting "Like" via Quill and Together

While trying to do this:

Use Quill or Together to create a "like-of" of:

https://www.theverge.com/tldr/2018/2/20/17031836/jeff-bezos-clock-10000-year-cost

I encountered this error:

Known fails to create the Like, returning an error.

Some other notes:

version = "0.9.9"
build = 2018022001

Known > 0.9.9 Micropub of Photo issues

While trying to do this:

Use the micro.blog apps (macOS/iOS) to create a post with an image on Known

I encountered this error:

Photo post is created, image does not show

Some other notes:

Uploaded images seem to be cycled twice through the system, since the url passed to uploadFromUrl() includes the known blog url, and notably no file extension which leads to MIME fun (a blank $mimetype)

This has a couple of solutions: mime_content_type($tmpname); or @cleverdevilโ€™s use of finfo_open()

Give us some context:

  • It'd also be really handy if you could tell us the contents of your version.known file
    0.9.9 2018032701 / 0.9.9-a 2018041302
  • What database are you using? (e.g. mongo, mysql, postgres)
    postgres

I see other odd things in /var/log/nginx/error.log like :

notice - PHP [8] Undefined variable: entity in /<webroot>/IdnoPlugins/IndiePub/Pages/MicroPub/Endpoint.php:128" while reading response header from upstream

Which pertains to:

https://github.com/idno/Known/blob/master/IdnoPlugins/IndiePub/Pages/MicroPub/Endpoint.php#L128

Only posts first photo from a multiple photo post

While trying to do this:

Posting a "stack" of photos from Instagram via https://ownyourgram.com/photos

I encountered this error:

  • it only posts the first photo/video screenshot

Some other notes:

Give us some context:

  • version.known: version = '0.12.8' build = '2019062801'
  • I am using mysql
  • Diagnostics page just has this warning: You appear to be running directly from a git checkout [...]

Micropub: action=update not implemented

While trying to do this:

Add another category to an existing note via micropub

$ curl -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer abc' --data '{"action":"update","url":"http:\/\/known.bogo\/2016\/this-is-a-slugtest","add":{"category":["foo","bar"]},"replace":{"slug":["differentslug"]}}' 'http://known.bogo/micropub/endpoint'
HTTP/1.1 500 Internal Server Error
...
Couldn't create note

I encountered this error:

HTTP/1.1 500
Couldn't create note

Bookmarks and micropub clients

When using a micropub client to publish a bookmark on Known you can not add any content in the box before the post gets published.

An IndieAuth user gets the base domain as their "me" url when logging in

While trying to do this:

  1. Go to wiki.indieweb.org
  2. Click login
  3. Enter Known site URL for a single-user site with a single-user template.
  4. Select IndieAuth option and click Authorize

I encountered this error:

The 'me' value that is propagated to the client contains the /profile/$username suffix. Instead it should default to the home page.

It appears that the code responsible for generating the me URL is in

Known/IdnoPlugins/IndiePub/Pages/IndieAuth/Auth.php

which calls the getURL code.

Some other notes:

Observed using hosted known at withknown.com on a custom domain http://1500wordmtu.com

Hashtags stripped from Instagram PESOS via OwnYourGram

While trying to do this:

Use hashtags within the description of a post to Instagram and have it returned to my site by OwnYourGram

I encountered this error:

Any word preceded by a # is deleted from the description and turned into a Known tag. Compare, for example, https://stream.jeremycherfas.net/2019/pay-no-attention-im-actually-testing-my-photos-to-try on my Known site with the original on Instagram https://www.instagram.com/p/BtGrqFdH3ZI/

Some other notes:

Give us some context:

I like that Known tries to turn hashtags into tags, but I would much prefer it to simply leave them in the description of the photo.

  • It'd also be really handy if you could tell us the contents of your version.known file

version = "0.9.9-a"
build = 2018120201

  • What database are you using? (e.g. mongo, mysql, postgres)

Mysql

  • Any warnings or errors in your admin/diagnostics page?
  • If this is a programming bug, can you include examples of any Micropub / API calls / webhook pings you make? Otherwise please don't worry about what this means!
  • Bonus points - are you able to illustrate the issue with a unit test? If so, submit it as a pull request!

Micropub: Invalid "published" date silently ignored

While trying to do this:

Publish a new note via micropub. The note had a published property set to some unix timestamp.

I encountered this error:

The note's published property was silently ignored. The note was created, but with the current timestamp.

Known should reject invalid timestamp values instead of silently ignoring them.

Some other notes:

When setting published to a ISO-861 datetime string like 2016-01-02T23:42:00+02:00, known uses that date correctly.

Not posting from OwnYourGram since 0.9.9-a

While trying to do this:

Posting a photo on Instagram and having it syndicate to my Known site.

I encountered this error:

The post does not get created. OwnYourGram returns an error.

Some other notes:

I originally had this as an OYG issue, but @aaronpk saw this error his end...

{
  "error": "invalid_request",
  "error_description": "Failed uploading photo from https://davidjohnmead.com/file/3b44c043122f278ba9eac3ae7bdb7cc9",
  "messages": []
}

...and thought it "looks like something is wrong with Known understanding its own images".

When I initially set up Known is was with 0.9.9 (from the site) and it imported previous photos when I hooked up OYG. Since updating to the build from @mapkyca site it doesn't.

  • Version 0.9.9-a (2018112001)
  • mySQL
  • no errors that I've seen

Give us some context:

  • It'd also be really handy if you could tell us the contents of your version.known file
  • What database are you using? (e.g. mongo, mysql, postgres)
  • Any warnings or errors in your admin/diagnostics page?
  • If this is a programming bug, can you include examples of any Micropub / API calls / webhook pings you make? Otherwise please don't worry about what this means!
  • Bonus points - are you able to illustrate the issue with a unit test? If so, submit it as a pull request!

[Micropub] Editing a post in Known can have destructive side effects on content

There is a bug in Known which causes HTML posts published via Micropub to be changed (usually in bad ways) when "editing" the post, even when you don't actually make any changes to the post. I discovered this issue when publishing via Sunlit 2.0, which supports Micropub.

I published two stories:

Because Sunlit doesn't yet support syndication via Micropub, I clicked "edit" on one of the posts, and toggled on syndication to Twitter and Facebook, and then clicked "save." The result was that the post's content was changed (in a destructive way, resulting in visual regressions), even though I hadn't actually edited the content, or even clicked into the content editor.

Seems like this is a bug.

(Originally published at: https://cleverdevil.io/2018/editing-a-post-in-known-can-have-destructive-side-effects)

Indiepub endpoint not working ?

Hi,

I may have missed some installation step, but I enabled the plugin on my Known instance, and the endpoints get added correctly in the template. But when heading to the micropub endpoint, I get a 404 "this ressource does not exist".

Moreover, if I try to use Quill, it finds the correct endpoints but can't post anything after the auth, due to this error.

Thanks

Two copies of single image from IG multi-image post

While trying to do this:

Feed from Instagram multiimage to Known via OwnYourGram

I encountered this error:

Instead of two different images, Known shows two copies of the first image https://stream.jeremycherfas.net/2018/they-go-in-they-come-out20%25-maize-flour-sourdough

Some other notes:

The previous time I had a multi-image in IG, Known pulled in only the first image because I believe that was the correct previous behaviour.

Give us some context:

  • It'd also be really handy if you could tell us the contents of your version.known file
    version = "0.9.9-a"
    build = 2018111201

  • What database are you using? (e.g. mongo, mysql, postgres)

  • Any warnings or errors in your admin/diagnostics page?

  • Bonus points - are you able to illustrate the issue with a unit test? If so, submit it as a pull request!

Micropub: "slug" property ignored

While trying to do this:

Create a note with a defined URL slug (path) via Micropub

$ curl -X POST -H 'Content-Type: application/x-www-form-urlencoded'\
    -H 'Authorization: Bearer abc'\
    -d 'h=entry' -d 'content=this is a slugtest!' -d 'slug=slugtest'\
    'http://known.bogo/micropub/endpoint'
Post created at server
http://known.bogo/2016/this-is-a-slugtest

I encountered this error:

Slug is ignored and known creates the path itself from the content

Possibly incorrect content type on access token response

Hi folks,

I'm working on a Micropub client. A user who runs Known with indiepub is encountering an error using my app. Specifically, when their request was successful and I received a 200 OK response, the content-type header was set to application/x-www-form-urlencoded

As per the spec, I expected an application/json response.

Is what's available in the Token.php file correct?

header('Content-Type: application/x-www-form-urlencoded');

Micropub: Upload of multiple photos fails

While trying to do this:

Create a note with two images via the micropub endpoint

$ curl -i -H 'Authorization: Bearer abc' -F 'h=entry' -F 'content=2 photos'\
     -F 'photo[]=@/path/to/image.png' -F 'photo[]=@/path/to/image2.png'\
     http://example.org/micropub

Passing two image URLs fails the same:

$ curl -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer abc'\
     -d 'h=entry' -d 'content=2 image urls'\
     -d 'photo[0]=http://example.org/1.jpg'\
     -d 'photo[1]=http://example.org/2.jpg' http://example.org/micropub

I encountered this error:

  • HTTP status code 200
  • no location header
  • no post created

Some other notes:

The micropub draft spec section 3.3 create says:

To specify multiple values for a property, such as multiple categories of an h-entry, use array bracket notation for the property name.

the error log says:

PHP Warning: getimagesize() expects parameter 1 to be string, array given in /home/cweiske/Dev/tools/known/Idno/Entities/File.php on line 196

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.