Skip to content

Commit

Permalink
Rename feed_following to feed_follow_num
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Feb 14, 2017
1 parent 179ee2d commit 3d55af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/Newsfeed/NewsfeedPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ def formatSiteInfo(self, site, create_user=True):
site_info = super(UiWebsocketPlugin, self).formatSiteInfo(site, create_user=True)
feed_following = self.user.sites[site.address].get("follow", None)
if feed_following == None:
site_info["feed_following"] = None
site_info["feed_follow_num"] = None
else:
site_info["feed_following"] = len(feed_following)
site_info["feed_follow_num"] = len(feed_following)
return site_info

def actionFeedFollow(self, to, feeds):
Expand Down

0 comments on commit 3d55af2

Please sign in to comment.