Home | Notifications | New Note | Local | Federated | Search | Logout
Note Detail
Blurry Moon@sun@shitposter.world (2026-12-02 20:08:22)
Thanks @graf for adding profile songs to https://plspace.space/ !!!
---Attachments---
image: https://media.shitposter.world/shitposter.club/44/59/43/445943a6cf331dd5031a3a151269303a4e1199aae3693f5e74fc427a76bd992e.webp?name=8niHZUAYxwDXyA.webp
---Reply---
Ree ⚧️💚@Ree@shitposter.world (2026-12-02 20:34:10)
@sun @graf how does that work?
Reply
---Replies---
anime graf mays 🛰️🪐@graf@poa.st (2026-12-02 20:35:30)
@Ree @sun you can read here
Profile songs
-------------
Members can upload a song (or link to an audio file) in Settings under "Your
profile song", and it plays on their profile in a small charcoal player under
the profile photo, starting by itself like the original.
- Upload: the file goes through /api/v1/media and is attached to a blog
entry (unlisted by default; public or friends-only on request), because
Pleroma never cleans up uploads that were not attached to a post. The song
is then written to a profile field named `plspace:song` as
`"Title" by Artist <url>`. Fields federate, so plspace on any server can
play a remote member's song, and other clients show a readable link.
- If the blog entry or the profile update fails after the upload, the editor
keeps the upload and a retry reuses it: it posts the same file again or
just saves the profile, so nothing is uploaded twice or left unattached.
- Reading: the field is parsed from raw source fields or rendered HTML,
ignoring hashtag and mention links. Only https addresses play, the same
rule published CSS follows; an http file would be blocked as mixed content.
- Writing: every other field, including published CSS chunks, keeps its
position. Free field slots and Pleroma's linkified value length are checked
before anything is uploaded.
- Playback: the player tries to start on its own. When the browser blocks
sound on a cold page load, it waits for the visitor's first click or key
press anywhere, ignoring clicks on links and keys that only move around the
page (Tab, arrows, Page Up/Down, Home/End, modifiers, function keys), so
keyboard and screen-reader visitors are not talked over while they find
their way. In-app navigation usually counts as interaction, so it starts at
once. Only the song's metadata is preloaded, so a blocked autoplay does not
download the file. Visitors can pause, seek, set a remembered volume and turn
autoplay off in the player or in Settings; with autop