aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
Commit message (Collapse)AuthorAgeFilesLines
* cli utilities - argc and argv reversed. Not functionally incorrect since it ↵redmatrix2016-05-171-2/+2
| | | | was consistent but aesthetically incorrect.
* expire delivery reports at 10 days by default instead of 30.redmatrix2016-01-041-1/+1
|
* heavy lifting for delivery reportsredmatrix2015-09-221-0/+11
|
* site checking stuffredmatrix2015-09-141-0/+3
|
* initial work on obj import, rename import_profile_photo to ↵redmatrix2015-09-011-1/+1
| | | | import_xchan_photo to more accurately state its purpose.
* schedule a doco update once weeklyredmatrix2015-08-301-0/+3
|
* convert the abook fieldsredmatrix2015-06-141-13/+7
|
* more work on item table optimisationredmatrix2015-06-101-4/+2
|
* Merge branch 'master' into tresfriendica2015-04-231-5/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: include/Contact.php include/ItemObject.php include/api.php include/attach.php include/diaspora.php include/dir_fns.php include/enotify.php include/event.php include/expire.php include/items.php include/notifier.php include/notify.php include/photos.php include/taxonomy.php include/text.php include/widgets.php include/zot.php mod/admin.php mod/channel.php mod/dirsearch.php mod/display.php mod/editwebpage.php mod/events.php mod/home.php mod/item.php mod/manage.php mod/mood.php mod/network.php mod/page.php mod/photos.php mod/ping.php mod/post.php mod/thing.php mod/viewsrc.php view/css/mod_events.css
| * fix regdirfriendica2015-03-311-1/+1
| |
| * this query can take quite a while if there were many updates but it has not ↵Mario Vavti2015-03-241-0/+6
| | | | | | | | been called for a long time (eg nobody called mod sharedwithme). might be a good idea to have this in the poller to clean up on a regular basis and call it once more in mod sharedwithme. what do you think?
| * put a lower time limit on time travellersfriendica2015-03-221-3/+5
| |
| * tweaks to directory registrations which don't seem to be happening, also ↵friendica2015-03-191-2/+2
| | | | | | | | downgrade any directory that claims to be a primary directory for RED_GLOBAL.
| * Nag hub admins with self-signed certs to fix them. Otherwise we'll just have ↵friendica2015-03-011-0/+1
| | | | | | | | | | | | to start marking them as dead sites.
* | Merge branch 'master' into tresfriendica2015-02-011-0/+4
|\|
| * two tracks proceeding in parallel - first adding the ability to store a ↵friendica2015-02-011-0/+4
| | | | | | | | digital signature with ratings so that directories can pass them around, second provide some directory registration functions so we can obtain a list of directories from somewhere (to pass ratings around between them). This gives the primary directory role some value as that is where you register your directory.
* | Merge branch 'master' into tresfriendica2015-01-271-1/+1
|\| | | | | | | | | Conflicts: include/socgraph.php
| * provide storage for directory based reputation in the xlink table by setting ↵friendica2015-01-261-1/+1
| | | | | | | | xlink_static = 1, so that xlink_static = 0 is traditional poco linkages
* | Merge branch 'master' into tres and add some work on the item_deleted flag ↵friendica2015-01-261-1/+1
|\| | | | | | | | | | | | | | | | | | | refactor Conflicts: include/attach.php include/onedirsync.php include/zot.php mod/locs.php
| * fix dir server query take 2Habeas Codice2015-01-221-1/+1
| | | | | | | | | | rationale: use latest entry rather than latest update. update timestamp is updated for all entries upon success so they are equivalent. prevents dupes from fake null dates.
| * Rework directory server update selection queryHabeas Codice2015-01-201-1/+1
| |
* | start on item_restrict conversionfriendica2015-01-221-3/+2
|/
* get rid of really old poco records once weeklyfriendica2015-01-201-0/+7
|
* provide last successful poll run time (using relative time) in siteinfo so ↵friendica2014-12-211-0/+2
| | | | that we can tell folks that have no idea what we're talking about that their poller definitely isn't running and this is probably why nothing works correctly.
* some poller optimisations and a fix for undefined (empty) dbtype which shows ↵friendica2014-11-161-24/+31
| | | | up as a mysql error that 'rand' isn't found.
* Merge remote-tracking branch 'upstream/master'Habeas Codice2014-11-131-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: boot.php include/dba/dba_driver.php include/diaspora.php include/follow.php include/session.php include/zot.php mod/photos.php mod/ping.php
| * revert that bitfriendica2014-11-071-7/+1
| |
| * Provide a way to mark photos as adult and hide them from the default album ↵friendica2014-11-061-4/+10
| | | | | | | | view. Still need a button or setting to enable "unsafe viewing". This has no effect anywhere but in the album views. They can still be viewed by flipping through the individual photos with 'prev' and 'next'. We probably need a comprehensive strategy for how to deal with n-s-f-w photos in albums so consider this a band-aid which requires additional work and integration with other facilities which access these photos. It is entirely optional.
* | PostgreSQL support initial commitHabeas Codice2014-11-131-20/+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)
* TypoThomas Willingham2014-10-211-1/+1
|
* Screwed up merge - put Mike's stuff back.Thomas Willingham2014-10-201-6/+11
|
* Prevent more than one instance of the poller running at a time.Thomas Willingham2014-10-201-12/+19
|
* don't auto-archive connections we can't poll.friendica2014-10-191-6/+11
|
* query for statistics are now executed by pollerPaolo Tacconi2014-10-021-0/+7
|
* provide a way to sync locations and get rid of bogus hublocs, now implementedfriendica2014-09-141-0/+3
|
* one more timefriendica2014-09-081-2/+3
|
* missed onefriendica2014-09-081-2/+5
|
* This is long overdue - use a symblic constant NULL_DATE instead of the ↵friendica2014-09-081-5/+5
| | | | easily mis-typed sequence '0000-00-00 00:00:00'
* implement service class for feed polling frequenecy, fixed a service class ↵friendica2014-09-031-2/+3
| | | | bug, moved service class stuff from plugin to account.php where it belongs and load that by default instead of on demand
* Merge remote-tracking branch 'upstream/master'Thomas Willingham2014-09-021-1/+14
|\
| * get out the sunniesfriendica2014-08-311-1/+14
| |
* | Add check_upstream_directory() to check that your directory is stillThomas Willingham2014-08-311-0/+3
|/ | | | | a directory, and if it isn't, let find_upstream_directory() find you a new one.
* allow a site to run cron daily at a chosen hourfriendica2014-07-161-3/+17
|
* doc updatesfriendica2014-06-061-1/+9
|
* bring back birthdaysfriendica2014-06-021-0/+2
|
* cleanup dead directory entries. This was a real b#tch, so keep your eye out ↵friendica2014-05-281-1/+2
| | | | for issues - which you shouldn't see until next weekend when this is scheduled to run. We're only setting flags, so if anything goes wrong we should be able to recover without too much pain.
* Default discover to on.Thomas Willingham2014-03-301-1/+1
|
* Let the site admin choose whether to display the Discover tab.Alexandre Hannud Abdo2014-03-301-1/+2
|
* firehose fixes and optimisations. In particular get rid of the unresponsive ↵friendica2014-03-271-23/+2
| | | | script warning when trying to load updates (sine they aren't our posts, we can't check for unseen, hence we can't really load updates). Also make the url selection pluggable.
* firehose testing (network?f=&fh=1) - some possible security bugs so testing ↵friendica2014-03-261-0/+1
| | | | purposes only