gnu-social/plugins/OStatus/actions
Joshua Judson Rosen 7440dc2145 Prevent spurious refusals of legitimate notices posted to users via Salmon.
Make the logic match the intent described in the comments.

The intent is clearly "accept notices whenever (A or B or C)", but
the logic implemented was more like "not ((not A) or (not B) or (not C))",
which is a basical boolean algebra fail (each of those ORs need to
become ANDs for double-negation to work).

The practical implication was that, for example, writing a reply
to someone else's notice and including an @-reference to _another_
user on another site to bring them into the discussion would
fail to deliver the notice to the new user because their server
would basically say `oh no, you can't message this user
from someone else's thread' because an earlier check for
the `A' or `C' parts of `(A or B or C)' prevents `B' from
being checked.

cf.: <http://status.hackerposse.com/notice/55846>, which was
refused by the nhcrossing.com server because it didn't know
about <http://sn.jonkman.ca/notice/93724>, even though it would
have passed the later `notice contains a reference to a local user'
check if not for an exception being prematurely thrown.

The whole idea of reporting `which specific check FAILED'
in an `if ANY SUCCEEDS' analysis is just bogus, so nix all of
the distinct ClientExceptions--a single `ALL FAILED' exception
is the only one that makes sense.
2014-05-05 13:35:38 +02:00
..
groupsalmon.php Cosmetic changes to common_redirect, clientError, serverError 2014-03-10 00:25:57 +01:00
ostatusgroup.php Merge branch 'master' of gitorious.org:statusnet/mainline 2012-07-28 13:59:40 -04:00
ostatusinit.php Minor code cleanup with group related actions (thanks brw12) 2014-03-01 12:01:17 +01:00
ostatuspeopletag.php Fix L10n/i18n. 2011-04-29 18:59:47 +02:00
ostatussub.php Make ostatussub conform to coding standards a bit 2014-03-05 13:44:45 +01:00
ostatustag.php Cosmetic changes to common_redirect, clientError, serverError 2014-03-10 00:25:57 +01:00
peopletagsalmon.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
pushcallback.php SubMirror now works again against old PuSH 2014-03-03 00:01:13 +01:00
pushhub.php PuSH 0.4: No outgoing 'sync' verifications. Feed renewal script. No auto-renewal. 2013-11-02 20:02:28 +01:00
salmon.php plugins onAutoload now only overloads if necessary (extlibs etc.) 2013-08-28 16:10:30 +02:00
usersalmon.php Prevent spurious refusals of legitimate notices posted to users via Salmon. 2014-05-05 13:35:38 +02:00