aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* link socgraph to zrlsfriendica2012-05-011-13/+5
|
* adding zrl support to social graphsfriendica2012-05-011-14/+24
|
* Merge branch 'master' of https://github.com/friendica/friendicaAlexander Kampmann2012-04-051-2/+6
|\ | | | | | | | | | | Conflicts: include/config.php update.php
| * don't include friend suggestions for people with the same name as current ↵friendica2012-03-251-2/+6
|/ | | | contacts. This will remove a lot of #whoaretonybaldwin.
* more friend suggestionsfriendica2012-03-201-1/+1
|
* add remove_user hook (it looks like dreamhost changed all my file ↵friendica2012-01-181-0/+0
| | | | permissions, this will make a nasty commit)
* more data checking, cleans up some infrequent php errorsfriendica2011-12-191-0/+3
|
* poco_load aborting after debug statementfriendica2011-12-191-2/+15
|