You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 2, 2021. It is now read-only.
Create a function that will listen to each changes at the API endpoint /tracks/$track.
check if this $track.yid exists at the new model trackUniques.[$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 relation
play 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 endpoint
could 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
Create a function that will listen to each changes at the API endpoint
/tracks/$track.check if this
$track.yidexists at the new modeltrackUniques.[$track.yid]if exists: create a new relation (question: reference the
$track.idor$track.channel? — see note1)if not: create the new
trackUniquesmodel and its first relationplay the role of a backend and parse the
$track.bodyfor each #hashtag, and save them in new relationship$track.tags: hasMany('tag')—> we'll then have to create the/tagsAPI endpointcould also check if there is a
@mention(or+@mentionthat could mean "send this track to my friend") and if$track.channelis in@mention.favoriteswould add this info somewhere (to be determined and though uppon — let's please not spam)Note1:
OR
trackUniques.[$track.yid].channels.[$track.channel] = trueOR
trackUniques.[$track.yid].trackOccurences.[$track.id] = trueOR both