Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

listener feeds #4

Closed
wants to merge 19 commits into from

2 participants

Matt Mower Sudara
Matt Mower
Collaborator

I wasn't able to validate the feeds locally although Safari accepted them (the key question is whether iTunes will).

This introduces a "listener feed" for each user which is a feed of the 15 newest tracks from artists they follow.

It's available as /users/:u/listenfeed.rss

mmower added some commits
Matt Mower mmower Eliminated guest comments from the home page. 64bd048
Matt Mower mmower Added :block_guest_comments User setting to control whether guests ha…
…ve the ability to comment on an artists tracks. Defaults to allowing comments. Modified User edit page so user can change the setting.
1339da7
Matt Mower mmower If the user changes their :block_guest_comments setting the Asset#cac…
…he_key for all their tracks gets updated to invalidate cached tabs.
91dd654
Matt Mower mmower Merging sudara's fix 4873a65
Matt Mower mmower Added a "listener feed" as /users/:u/listenfeed.rss that returns the …
…last 15 new tracks from artists the user is following. Should be suitable for subscription in iTunes et al.
2a0e3cf
Matt Mower mmower Small improvement to title & description for listen feeds. 6bb783d
Matt Mower mmower Merge branch 'master' of github.com:sudara/alonetone
* 'master' of github.com:sudara/alonetone:
  fix up stats page
  UI tweaks, fix map position
  Be consistent with ronnia font
  Fix pagination
  Test out typekit
5b44b8a
Matt Mower mmower Fixed: UsersController#update fails with nil error if @user.settings …
…is not present
d2fd16f
Matt Mower mmower Changed: the Listen Feed now users the users "display name", rather t…
…han their "user name", because it will be more familiar
25b2cf2
Matt Mower mmower Merging sudaras changes fdc5778
Matt Mower mmower Fix: updating the profile bit of the user profile no longer hangs 55345c0
Matt Mower mmower Merge branch 'master' of github.com:sudara/alonetone into sudara
* 'master' of github.com:sudara/alonetone:
  Fix: updating the profile bit of the user profile no longer hangs
0624abc
Matt Mower mmower Cache asset tabs separately for guests and logged in users to avoid t…
…he problem of a logged in user caching the tabs with comments enabled so that they are then presented, via the cache, to a guest who should not be able to comment.
17c079e
Matt Mower mmower Merge branch 'master' of github.com:mmower/alonetone
* 'master' of github.com:mmower/alonetone:
  Fix: updating the profile bit of the user profile no longer hangs
f202a57
Matt Mower mmower Merge branch 'master' of github.com:sudara/alonetone
* 'master' of github.com:sudara/alonetone:
  deploy script should remove combined js/css because rails seems to not be smart enough
  Namespace the soundmanager stuff in timestamped folder
  add swf
  NOTE TO SELF: .swf are cached for 10 years, so change filename when updating swf files
  Cache asset tabs separately for guests and logged in users to avoid the problem of a logged in user caching the tabs with comments enabled so that they are then presented, via the cache, to a guest who should not be able to comment.
c7d6f89
Matt Mower mmower Put the track length in the listen feed item titles. a02388b
Matt Mower mmower Merge branch 'master' of github.com:sudara/alonetone
* 'master' of github.com:sudara/alonetone:
  Put the track length in the listen feed item titles.
f0981fd
Matt Mower mmower Merge branch 'master' of github.com:sudara/alonetone
* 'master' of github.com:sudara/alonetone:
  clean up css in second part of deploy, otherwise it seems old css/js linger
  ipad style tweaks
  iPad/iPhone support. iPad icon. New soundmanager. Relative positioning of footer.
fb28d56
Matt Mower mmower When showing stats about which artist an account listens to only look…
… at the last 4 months worth of listens. This makes it a moving reflection of taste rather than fixating on old favourites.
96b62d5
Sudara sudara closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 24, 2010
  1. Matt Mower
  2. Matt Mower

    Added :block_guest_comments User setting to control whether guests ha…

    mmower authored
    …ve the ability to comment on an artists tracks. Defaults to allowing comments. Modified User edit page so user can change the setting.
  3. Matt Mower

    If the user changes their :block_guest_comments setting the Asset#cac…

    mmower authored
    …he_key for all their tracks gets updated to invalidate cached tabs.
  4. Matt Mower

    Merging sudara's fix

    mmower authored
  5. Matt Mower

    Added a "listener feed" as /users/:u/listenfeed.rss that returns the …

    mmower authored
    …last 15 new tracks from artists the user is following. Should be suitable for subscription in iTunes et al.
  6. Matt Mower
  7. Matt Mower

    Merge branch 'master' of github.com:sudara/alonetone

    mmower authored
    * 'master' of github.com:sudara/alonetone:
      fix up stats page
      UI tweaks, fix map position
      Be consistent with ronnia font
      Fix pagination
      Test out typekit
Commits on Oct 28, 2010
  1. Matt Mower
  2. Matt Mower

    Changed: the Listen Feed now users the users "display name", rather t…

    mmower authored
    …han their "user name", because it will be more familiar
Commits on Nov 4, 2010
  1. Matt Mower

    Merging sudaras changes

    mmower authored
  2. Matt Mower
Commits on Nov 9, 2010
  1. Matt Mower

    Merge branch 'master' of github.com:sudara/alonetone into sudara

    mmower authored
    * 'master' of github.com:sudara/alonetone:
      Fix: updating the profile bit of the user profile no longer hangs
  2. Matt Mower

    Cache asset tabs separately for guests and logged in users to avoid t…

    mmower authored
    …he problem of a logged in user caching the tabs with comments enabled so that they are then presented, via the cache, to a guest who should not be able to comment.
  3. Matt Mower

    Merge branch 'master' of github.com:mmower/alonetone

    mmower authored
    * 'master' of github.com:mmower/alonetone:
      Fix: updating the profile bit of the user profile no longer hangs
Commits on Nov 23, 2010
  1. Matt Mower

    Merge branch 'master' of github.com:sudara/alonetone

    mmower authored
    * 'master' of github.com:sudara/alonetone:
      deploy script should remove combined js/css because rails seems to not be smart enough
      Namespace the soundmanager stuff in timestamped folder
      add swf
      NOTE TO SELF: .swf are cached for 10 years, so change filename when updating swf files
      Cache asset tabs separately for guests and logged in users to avoid the problem of a logged in user caching the tabs with comments enabled so that they are then presented, via the cache, to a guest who should not be able to comment.
  2. Matt Mower
Commits on Feb 14, 2011
  1. Matt Mower

    Merge branch 'master' of github.com:sudara/alonetone

    mmower authored
    * 'master' of github.com:sudara/alonetone:
      Put the track length in the listen feed item titles.
Commits on Mar 2, 2011
  1. Matt Mower

    Merge branch 'master' of github.com:sudara/alonetone

    mmower authored
    * 'master' of github.com:sudara/alonetone:
      clean up css in second part of deploy, otherwise it seems old css/js linger
      ipad style tweaks
      iPad/iPhone support. iPad icon. New soundmanager. Relative positioning of footer.
  2. Matt Mower

    When showing stats about which artist an account listens to only look…

    mmower authored
    … at the last 4 months worth of listens. This makes it a moving reflection of taste rather than fixating on old favourites.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/models/user/statistics.rb
2  app/models/user/statistics.rb
View
@@ -113,7 +113,7 @@ def most_listened_to_user_ids(limit = 10)
:group => 'track_owner_id',
:order => 'count_track_owner DESC',
:limit => limit,
- :conditions => ['track_owner_id != ?', self.id]
+ :conditions => ['track_owner_id != ? AND DATE(`listens`.created_at) > DATE_SUB( CURDATE(), interval 4 month)', self.id]
).collect(&:first)
end
Something went wrong with that request. Please try again.