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

Support private gists #17

Open
divideby0 opened this issue Jul 19, 2012 · 21 comments
Open

Support private gists #17

divideby0 opened this issue Jul 19, 2012 · 21 comments

Comments

@divideby0
Copy link

Not sure if this is an intentional incompatibility, but this:

https://gist.github.com/85126ceb850513ecc276

Does not appear to map to this:

http://gist.io/85126ceb850513ecc276

When I attempt to access the gist.io link, I get a 404.

@divideby0
Copy link
Author

It would appear that this is due to the routes taking an int as the gist id. As far as I can tell, private gists don't have a numeric id, but can only be referenced via hash.

@tobiastom
Copy link

I would also appreciate this feature. Sometimes you might want beautiful texts, but not have them appear in your gist timeline.

@idan
Copy link
Owner

idan commented Jul 19, 2012

Will have a think about it. Right now the service explicitly only supports public gists.

@vlucas
Copy link

vlucas commented Jul 19, 2012

If you do eventually support this, make sure to add the appropriate tags and HTTP headers so the content will not get cached or crawled by search engines: http://www.i18nguy.com/markup/metatags.html

@divideby0
Copy link
Author

It might also be enabled as an option via configuration, in case someone wants to run a private-label gist.io on their own site, linking only to their own private gists.

@franciscolourenco
Copy link

+1

@joallard
Copy link

I've polled the Github API, and it works the same with getting public and private Gists.

So if I understand correctly, we just have to make the routes accept a hash and put a Robots:none header and that's it? Or am I missing something else here?

@divideby0
Copy link
Author

That is correct. I wound up implementing this in a grails project as I
needed the feature on a public website and can confirm this approach works.

Sent from my iPad

On Nov 25, 2012, at 11:17 AM, Jonathan Allard [email protected]
wrote:

I've polled the Github API, and it works the same with getting public and
private Gists.

So if I understand correctly, we just have to make the routes accept a hash
and put a Robots:none header and that's it? Or am I missing something else
here?


Reply to this email directly or view it on
GitHubhttps://github.com//issues/17#issuecomment-10695722.

@shortcircuit3
Copy link

Was this pull request accepted? I would also appreciate this feature. Merge!

@joallard
Copy link

joallard commented Jan 1, 2013

@milesalex The maintainer hasn't responded

@shortcircuit3
Copy link

@idan - Please?!

@idan
Copy link
Owner

idan commented Aug 13, 2013

I'm planning on implementing this, but a lot of changes under the hood will render #51 moot.

@darvin
Copy link

darvin commented Sep 23, 2013

Please support it

@idan
Copy link
Owner

idan commented Sep 23, 2013

Working on it :)
On Sep 23, 2013 10:08 AM, "Sergey Klimov" [email protected] wrote:

Please support it


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-24902076
.

@jvns
Copy link

jvns commented Nov 28, 2013

It would be amazing if gist.io supported private gists :)

@jvns
Copy link

jvns commented Nov 28, 2013

Is there anything I could do to help this to happen?

@joallard
Copy link

It's now been a year my rejected pull request has been submitted.

@shortcircuit3
Copy link

@joallard You should make a fork and host it on your own! Call it gist2.io!

@datenreisender
Copy link

Sadly gist.io is not just having problems with private gists. At the moment it also cannot handle gists that once where private but then turned public.

This is, what I just tried with https://gist.github.com/datenreisender/0128e842631b1c0b908f . After making it public I wanted to create a nice gist.io link for it but then discovered that http://gist.io/0128e842631b1c0b908f does not work.

Only way for me to solve it would be to copy the content into a new gist that was public from the beginning on. But since this does not fit my workflow I rather abstained from creating a gist.io link.

@x3ro
Copy link

x3ro commented Dec 3, 2014

@datenreisender You could try draft.sx (disclaimer: my own fork). I would normally not announce that here, but since @idan seems to have abandoned the project...

@Potherca
Copy link

Potherca commented Jun 1, 2019

@idan ✔️ Issue can be closed.

Working URLs:


Regarding

If you do eventually support this, make sure to add the appropriate tags and HTTP headers so the content will not get cached or crawled by search engines

or

a robots:none header

I'd suggest opening a dedicated issue for that if it is (still) desirable.

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

No branches or pull requests