anchor.diff:      Entry = #entry{rsc_id = RscId, time = Time, user_id = UserId, ip_address = IpAddress},
       z_notifier:notify({ginger_activity, Entry}, Context),
       ok.
  -    
  +
   pid_observe_ginger_activity(_Pid, {ginger_activity, Entry}, Context) ->
       #entry{rsc_id = RscId, time = Time, user_id = UserId, ip_address = IpAddress} = Entry,
       case z_convert:to_bool(m_config:get_value(mod_ginger_activity, persist_activity, Context)) of
  
positive.code:     UserId = z_acl:user(Context),
      IpAddress = case z_context:get_reqdata(Context) of
          undefined -> undefined;
          Value -> 
              case proplists:get_value("x-forward-for", wrq:req_headers(Value)) of
                  undefined ->
                      z_convert:to_binary(wrq:peer(Value));
  
negative.code: %     insert_activity(RscId, DateTime, UserId, undefined, Context).
  insert_activity(RscId, DateTime, UserId, IpAddress, Context) ->
      Props = [{rsc_id, RscId}, {time, DateTime}, {user_id, UserId}, {ip_address, IpAddress}],
      z_db:insert(activity_log, Props, Context).
  