<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -45,6 +45,7 @@ end
 get '/:follower/follow/:followee' do |follower_username, followee_username|
   follower = User.find_by_username(follower_username)
   followee = User.find_by_username(followee_username)
+  redirect '/' unless @logged_in_user == follower
   follower.follow(followee)
   redirect &quot;/&quot; + followee_username
 end
@@ -52,6 +53,7 @@ end
 get '/:follower/stopfollow/:followee' do |follower_username, followee_username|
   follower = User.find_by_username(follower_username)
   followee = User.find_by_username(followee_username)
+  redirect '/' unless @logged_in_user == follower
   follower.stop_following(followee)
   redirect &quot;/&quot; + followee_username
 end</diff>
      <filename>app.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>db6e1e44e0fed02127501d7fb6b5597d238b0bc4</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </author>
  <url>http://github.com/danlucraft/retwis-rb/commit/74df792253a6a4eac1bcbe58cf64976aaad34455</url>
  <id>74df792253a6a4eac1bcbe58cf64976aaad34455</id>
  <committed-date>2009-05-24T07:19:55-07:00</committed-date>
  <authored-date>2009-05-24T07:19:55-07:00</authored-date>
  <message>Ooops, only you should be able to start and stop following people</message>
  <tree>3e340735c5897efcd1fba0300ee74c92a2050ce4</tree>
  <committer>
    <name>Daniel Lucraft</name>
    <email>dan@fluentradical.com</email>
  </committer>
</commit>
