aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
Commit message (Collapse)AuthorAgeFilesLines
* some ratings fixesfriendica2015-02-131-23/+0
|
* remote_user => remote_channelfriendica2015-01-281-1/+1
|
* local_user => local_channelfriendica2015-01-281-1/+1
|
* provide storage for directory based reputation in the xlink table by setting ↵friendica2015-01-261-6/+8
| | | | xlink_static = 1, so that xlink_static = 0 is traditional poco linkages
* abstract poco into a single function in socgraph so we can provide different ↵friendica2015-01-251-0/+209
| | | | wrappers for it providing slightly different functionality.
* don't set a rating of 1 on old sites that report poco rating as an array. ↵friendica2015-01-251-1/+1
| | | | Just set it to 0. It will be fixed whenever they upgrade.
* get rid of really old poco records once weeklyfriendica2015-01-201-0/+2
|
* poco rating variable getting over-written before local storage.friendica2015-01-191-1/+1
|
* validate poco chatrooms before storingfriendica2015-01-151-0/+3
|
* more backend work on poco ratingfriendica2015-01-151-2/+5
|
* PostgreSQL support initial commitHabeas Codice2014-11-131-26/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were 11 main types of changes: - UPDATE's and DELETE's sometimes had LIMIT 1 at the end of them. This is not only non-compliant but it would certainly not do what whoever wrote it thought it would. It is likely this mistake was just copied from Friendica. All of these instances, the LIMIT 1 was simply removed. - Bitwise operations (and even some non-zero int checks) erroneously rely on MySQL implicit integer-boolean conversion in the WHERE clauses. This is non-compliant (and bad programming practice to boot). Proper explicit boolean conversions were added. New queries should use proper conventions. - MySQL has a different operator for bitwise XOR than postgres. Rather than add yet another dba_ func, I converted them to "& ~" ("AND NOT") when turning off, and "|" ("OR") when turning on. There were no true toggles (XOR). New queries should refrain from using XOR when not necessary. - There are several fields which the schema has marked as NOT NULL, but the inserts don't specify them. The reason this works is because mysql totally ignores the constraint and adds an empty text default automatically. Again, non-compliant, obviously. In these cases a default of empty text was added. - Several statements rely on a non-standard MySQL feature (http://dev.mysql.com/doc/refman/5.5/en/group-by-handling.html). These queries can all be rewritten to be standards compliant. Interestingly enough, the newly rewritten standards compliant queries run a zillion times faster, even on MySQL. - A couple of function/operator name translations were needed (RAND/RANDOM, GROUP_CONCAT/STRING_AGG, UTC_NOW, REGEXP/~, ^/#) -- assist functions added in the dba_ - INTERVALs: postgres requires quotes around the value, mysql requires that there are not quotes around the value -- assist functions added in the dba_ - NULL_DATE's -- Postgres does not allow the invalid date '0000-00-00 00:00:00' (there is no such thing as year 0 or month 0 or day 0). We use '0001-01-01 00:00:00' for postgres. Conversions are handled in Zot/item packets automagically by quoting all dates with dbescdate(). - char(##) specifications in the schema creates fields with blank spaces that aren't trimmed in the code. MySQL apparently treats char(##) as varchar(##), again, non-compliant. Since postgres works better with text fields anyway, this ball of bugs was simply side-stepped by using 'text' datatype for all text fields in the postgres schema. varchar was used in a couple of places where it actually seemed appropriate (size constraint), but without rigorously vetting that all of the PHP code actually validates data, new bugs might come out from under the rug. - postgres doesn't store nul bytes and a few other non-printables in text fields, even when quoted. bytea fields were used when storing binary data (photo.data, attach.data). A new dbescbin() function was added to handle this transparently. - postgres does not support LIMIT #,# syntax. All databases support LIMIT # OFFSET # syntax. Statements were updated to be standard. These changes require corresponding changes in the coding standards. Please review those before adding any code going forward. Still on my TODO list: - remove quotes from non-reserved identifiers and make reserved identifiers use dba func for quoting - Rewrite search queries for better results (both MySQL and Postgres)
* illegal string offset warningsfriendica2014-09-051-1/+1
|
* fix the client side of pocofriendica2014-09-041-11/+20
|
* Set a default directory server from a hard-wired list if one was not ↵friendica2014-04-251-7/+1
| | | | previously chosen.
* that should fix it.friendica2014-03-241-0/+5
|
* vsprintf errorfriendica2014-02-261-1/+2
|
* put bookmarked chatrooms into pocofriendica2014-02-251-0/+28
|
* suggestion widgetfriendica2013-12-061-0/+4
|
* Issue #99Thomas Willingham2013-08-181-0/+1
|
* fine tuning the error checksfriendica2013-08-051-1/+6
|
* keep total of imported xchans correct - even if one or mail failures occurfriendica2013-08-051-4/+7
|
* more error checking in case import_xchan failsfriendica2013-08-051-0/+8
|
* use url part of arrayfriendica2013-08-051-1/+1
|
* prune old suggested channelsfriendica2013-08-051-0/+10
|
* populate initial suggestions (ultimately we want to do this at install time ↵friendica2013-08-051-84/+68
| | | | as well as from the poller so that new sites have friend suggestions when they create their first channel).
* directory server sitelist module (needed for public site list and building ↵friendica2013-08-041-0/+1
| | | | friend suggestions for new sites/channels with no known contacts)
* hide hidden entriesfriendica2013-03-051-0/+2
|
* basic friend suggestions (but not "new to the network and have no friends at ↵friendica2013-03-051-4/+23
| | | | all" suggestions)
* start formatting for Doxygenfriendica2013-02-251-1/+1
|
* little fixesfriendica2013-02-241-1/+1
|
* add rating support to pocofriendica2013-02-151-6/+9
|
* fix to common friends - it seems it counts the right number of common ↵friendica2013-02-131-1/+1
| | | | friends, but they are all you
* clean up some sql errors from the logsfriendica2013-02-081-3/+3
|
* update friends in common tool now that poco is workingfriendica2013-01-311-23/+14
|
* Someday the social graph will work, but alas not today. Add more debugging.friendica2013-01-281-1/+1
|
* poco debugging cont.friendica2013-01-251-5/+12
|
* some poco fixesfriendica2013-01-221-38/+39
|
* typos etc.friendica2013-01-021-2/+1
|
* start building social graphfriendica2013-01-011-88/+57
|
* poco discoveryfriendica2013-01-011-1/+1
|
* more work on json notifications, now working except for notify popupfriendica2012-07-151-1/+1
|
* keep FB out of private notesfriendica2012-05-221-13/+17
|
* "show more" friends in commonfriendica2012-05-041-4/+6
|
* yet another bug in remote_friends_in_commonfriendica2012-05-031-0/+1
|
* fixing common friendsfriendica2012-05-021-6/+7
|
* shuffle results of remote_common_friends widgetfriendica2012-05-021-4/+14
|
* final touches - show friends in common with total strangers from different sitesfriendica2012-05-011-3/+4
|
* cross fingersfriendica2012-05-011-1/+1
|
* reduce the scope a bitfriendica2012-05-011-16/+8
|
* first try common friends for visitorsfriendica2012-05-011-0/+42
|