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

Add paste Name/Title support (and <title> changes accordingly) #129

Open
4 tasks
koobs opened this issue Aug 11, 2019 · 5 comments
Open
4 tasks

Add paste Name/Title support (and <title> changes accordingly) #129

koobs opened this issue Aug 11, 2019 · 5 comments

Comments

@koobs
Copy link

koobs commented Aug 11, 2019

Note (01/01/2020): This is a feature request for the generic django dpaste package, not the deployed instance of dpaste.de.

The current HTML <title> for pastes is dpaste/$shortcode

This provides little value or context, in particular for the following use cases:

  • Title snarfer IRC bots that detect URL's and return their for additional context
  • Browser bookmarking

Feature Request:

  • Add (optional) Name/Title field for pastes

In paste response , instead of pastebin/$shortcode

  • If name/title is not empty, return <title>$name</title> in response body, ELSE
  • Return <title>$first-line-of-paste-content</title> in response body

If you're not keen on paste titles/names/summary's for whatever reason, in the short term, we could return:

<title>dpaste/$shortcode: $first-line-of-paste-content</title>

  • A configuration setting to enable use of the model field in parse <title> responses, or inclusion of $first-line-of-paste-content in <title> (depending on the implementation chosen)
@mathieu-aubin
Copy link
Contributor

after pushing a text file, i see "dpaste/oj9N (Plain Text)" which seem to indicate that something has changed since this issue was opened a while back.

@koobs is this still relevant? Please adjust according with the new modifications and if not, please be kind enough to clean after yourself and close this issue

Thanks!

@mathieu-aubin
Copy link
Contributor

After checking a bit more, i also see "noindex, nofollow" sent as robots headers, clearly indicating the owner doesn't want to have it's website tracked/recored by bots of any kind.

I vote on closing this

@koobs
Copy link
Author

koobs commented Jan 1, 2020

@mathieu-aubin This is a feature request

i see "dpaste/oj9N (Plain Text)"

This is consistent with the original post describing 'this is how dpaste currently works":

The current HTML <title> for pastes is dpaste/$shortcode

Default paste titles have not changed since opening this feature request.

Regarding:

After checking a bit more, i also see "noindex, nofollow"

This is about a feature request for the generic dpaste package, not about a particular deployed instance of them, where configuration can be modified by the administrator according to their own needs.

I don't understand what 'voting to close this' relates to.

@koobs
Copy link
Author

koobs commented Jan 1, 2020

I've added a note to the original post to clarify that this is a feature request for the django package, not dpaste.de instance

@mathieu-aubin
Copy link
Contributor

mathieu-aubin commented Jan 1, 2020

The current HTML <title> for pastes is dpaste/$shortcode

I was under the impression it did change, from the single variable in your description

I don't understand what 'voting to close this' relates to.

You are right, it's irrelevant

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

No branches or pull requests

2 participants