Example #1
0
        public bool NewsWorthy(ulong id, uint project, bool localRegionOnly)
        {
            //crit - if in buddy list, if non-local self
            //should really be done per compontnt (board only cares about local, mail doesnt care at all, neither does chat)

            // if not self, higher, adjacent or lower direct then true
            if (id == UserID || Trust.LocalTrust == null)
            {
                return(false);
            }

            if (!localRegionOnly && Trust.IsHigher(id, project))
            {
                return(true);
            }

            if (localRegionOnly && Trust.IsHigherDirect(id, project))
            {
                return(true);
            }

            if (Trust.IsAdjacent(id, project))
            {
                return(true);
            }

            if (Trust.IsLowerDirect(id, project))
            {
                return(true);
            }

            return(false);
        }