This repository has been archived by the owner on Mar 2, 2021. It is now read-only.
Listen to each track changes + trackUniques
model
#36
Labels
trackUniques
model
#36
Create a function that will listen to each changes at the API endpoint
/tracks/$track
.check if this
$track.yid
exists at the new modeltrackUniques.[$track.yid]
if exists: create a new relation (question: reference the
$track.id
or$track.channel
? — see note1)if not: create the new
trackUniques
model and its first relationplay the role of a backend and parse the
$track.body
for each #hashtag, and save them in new relationship$track.tags: hasMany('tag')
—> we'll then have to create the/tags
API endpointcould also check if there is a
@mention
(or+@mention
that could mean "send this track to my friend") and if$track.channel
is in@mention.favorites
would add this info somewhere (to be determined and though uppon — let's please not spam)Note1:
OR
trackUniques.[$track.yid].channels.[$track.channel] = true
OR
trackUniques.[$track.yid].trackOccurences.[$track.id] = true
OR both
The text was updated successfully, but these errors were encountered: