Accommodate scrobble URLs when present
Merge request reports
Activity
NOTE related backend PR is here: pleroma!3977 (merged)
Edited by NEETzschementioned in merge request pleroma!3977 (merged)
Yeah I thought about this, and the conclusion I came to was that maybe it should be a user setting somewhere. Which then raises the question of which user: the scrobbler or the viewer of the page? Or both somehow? I want to sleep on this one a bit more.
Should there be an option to just not have a limit?
Edited by NEETzscheI'll put this in a separate PR for the sake of organization, but I'm already thinking about how to do it. It's probably just changing the function that checks if it's present at all by comparing the most recent to some time range, and making the "Hide scrobbles" option a drop down with a some options like "Always," "Never," and a couple time ranges like 1day/1week/1month/1year.
But I'm definitely going to sleep on that. In fact I think I'm going to go to sleep right now.
@hj I did some cleanuup on this one to use the favicon of the domain name if it's present. You click the icon to go to the referenced
url
. It also repeats the code less. Also, since PleromaBE sanitizes theartist
andtitle
fields on their way out, I made them treat these as safe (so that it will show special characters instead of their unicode numbers).It creates this visual effect:
One scrobble linking to Last.fm (marine@breastmilk.club) and one scrobble linking to Soundcloud (NEETzsche@iddqd.social)
Do you prefer I include these changes in this PR or put it in a future one?
Edited by NEETzsche- Resolved by NEETzsche
@hj Yeah I missed that, sorry.
enabled an automatic merge when the pipeline for ce46b97c succeeds
mentioned in commit 02fff5dd