myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [1970] branches/event_logging/app/helpers/applica


From: noreply
Subject: [myexperiment-hackers] [1970] branches/event_logging/app/helpers/application_helper.rb: Subscriptions.
Date: Fri, 14 Nov 2008 12:41:41 -0500 (EST)

Revision
1970
Author
alekses6
Date
2008-11-14 12:41:40 -0500 (Fri, 14 Nov 2008)

Log Message

Subscriptions. Events that happened to any of "my" items (i.e. "my stuff" - workflows/files/packs) and to my favourite items will now be shown in the news feed on the user profile page.

Modified Paths

Diff

Modified: branches/event_logging/app/helpers/application_helper.rb (1969 => 1970)


--- branches/event_logging/app/helpers/application_helper.rb	2008-11-14 17:20:06 UTC (rev 1969)
+++ branches/event_logging/app/helpers/application_helper.rb	2008-11-14 17:41:40 UTC (rev 1970)
@@ -1410,8 +1410,8 @@
   # 1) contributor - instance of a User or Network for which the news are generated;
   # 2) before - Time object, indicating the time before which the events to be displayed (by default called with Time.now)
   # 3) after - Time object, indicating the time after which the events to be displayed (like a week ago and onwards)
-  # 4) contributor_news_only - set to "true" to get events relevant for the current user only;
-  #                                OR "false" to get events for friends and group members where contributor is a member of, too
+  # 4) contributor_news_only - set to "true" to get events relevant for the current user only (used on user/group profile pages);
+  #                                OR "false" to get events for friends and group members where contributor is a member of, too (used for "my news" page);
   # 5) return_raw_events - used for recursive calls; when set to "true" a set of events from ActivityLog table is returned;
   #                        "false" will cause the events to be interpreted and returned as news item;
   # 6) limit - the number of news entries to produce (the lower the value, the more positive effect on performance this has)
@@ -1525,8 +1525,8 @@
     # of events - this should include events related to contributables
     # belonging to the user, favourited by the user, etc 
     
-    # NB! only if this is the user's "home" page, not the profile page
-    unless contributor_news_only || contributor.class.to_s != "User"
+    # NB! only show this on the user's "home" page / profile page (never for the groups)
+    if contributor.class.to_s == "User"
       # ==== Announcements ====
       # add site announcements to the event list; (this user with no friends who are site admins AND
       # who is not a member of any groups, where site admins are members too, will still get news

reply via email to

[Prev in Thread] Current Thread [Next in Thread]