Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.02k stars 1.5k forks source link

Convert tags with spaces into CamelCase tags to increase Fediverse discoverability #5017

Open FediVideos opened 2 years ago

FediVideos commented 2 years ago

Describe the problem to be solved

PeerTube videos tagged with multiple words that include spaces are NOT searchable from Mastodon (while those with one word or CamelCase words are searchable).

For example, a PeerTube video tagged "OpenSource" (no spaces) is searchable from Mastodon, but tagged "Open Source" (with a space) is not. This difference is significant if a PeerTube video creator wants to increase discoverability, but there's no way they could know about it.

Describe the solution you would like:

Would it be possible to have PeerTube automatically convert tags with spaces into CamelCase tags?

With this kind of system in place, "Open Source" would automatically become "OpenSource", and would be discoverable while still retaining readability and accessibility.

(I know the PeerTube Discover page might look weird without spaces in the tags, but if it also placed a # sign before each tag, the reason for this Spaces -> CamelCase conversion would become clear I think?)

Chocobozzz commented 2 years ago

Hi,

Since we use the Hashtag convention, I think we should respect its format and automatically convert spaces to camel case in tag input :+1:

FediVideos commented 1 year ago

Hey there!

Since Mastodon 4.2.0 the tags on PeerTube videos are visible over on Mastodon too :partying_face: And it looks like multiple word tags are automatically converted!

Unfortunately the tags seem to lose their CamelCase, even if they're written in CamelCase to begin with?

Do you know if this is a problem at PeerTube's end, or at Mastodon's end?