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

Pasted snippets show a bunch of code and are not very attractive - needs a placeholder #139

Closed
ajvsol opened this issue Dec 1, 2016 · 4 comments · Fixed by #593
Closed

Comments

@ajvsol
Copy link

ajvsol commented Dec 1, 2016

Steps to reproduce

What happens

Sending the link for a paste via apps like Slack results in a bunch of code being displayed

What should happen

Perhaps some placeholder text as the paste was password-protected, also needs a thumbnail image

Additional information

Screenshot http://i.imgur.com/fRXVsfL.png

@rugk
Copy link
Member

rugk commented Dec 1, 2016

Your screenshot is from slack or so?

I think to solve this issue we could implement Twitter cards including some text explanation.

@elrido
Copy link
Contributor

elrido commented Dec 11, 2016

Do we maybe need an og:description meta tag to avoid this?

@paulcmal
Copy link

paulcmal commented Dec 26, 2016

Both og: and twitter: tags are needed, depending on what service the link gets posted on. As for libre metadata, there's microformats2.

I have a problem with sharing links to a Privatebin on social media, because:

  • The service transporting the URL has access to the decryption key (in the URL itself)
  • If there is a default template for links to Privatebin, it will be easy to get lost in identically-looking links

Here's a few ideas to address both issues:

  • add an optional "title" field for new pastes ; if empty, the title could default to "Encrypted note on PrivateBin"
  • add a summary explicitely discouraging sharing encrypted pastes on social media, such as "This content is encrypted, but giving the URL to any one/service means they get access to the encrypted content as well."
  • add an identicon of sorts for each paste, using the pad name as an input, for easier retrieval in a feed

Specifically regarding the microformats2 implementation, the closest post-type there is to a paste at the moment is a note, that is a bunch of text, optionally with a title, a date, an author, a picture... If an optional title is indeed added to pastes, then it's more of an article.

@rugk
Copy link
Member

rugk commented Dec 27, 2016

@elrido elrido added this to the Release 1.4 - improved UI milestone Feb 22, 2017
@rugk rugk closed this as completed in b52e78d Mar 27, 2020
@rugk rugk closed this as completed in #593 Mar 27, 2020
Release 1.4 - improved UI automation moved this from To do to Done Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants