aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
Commit message (Collapse)AuthorAgeFilesLines
* Added 'invitation_only' to site infowave722015-12-201-0/+1
|
* start working on the singleton settingredmatrix2015-12-091-0/+13
|
* provide plugin hooks for blacklist checking functions.redmatrix2015-12-061-0/+13
|
* use the std_version where applicable instead of matching to the git.redmatrix2015-12-031-4/+6
|
* generalise the site black|white allow lists, also add a channel black|white ↵redmatrix2015-11-291-1/+56
| | | | list for future use
* report correct directory mode for standalone directories in siteinforedmatrix2015-11-291-1/+1
|
* create get_site_info() function so we can have a siteinfo.json module ↵redmatrix2015-11-291-0/+104
| | | | instead of or actually in addition to siteinfo/json
* Use http_status() instead of homegrowing it. Adapt http_status to handle ↵ken restivo2015-11-201-4/+21
| | | | replies with data.
* remove the obsolete avatar_img function (gravatar/libravatar lookup)redmatrix2015-11-091-22/+0
|
* mail sync/migrate continued; also abstract delivery loop to make it ↵redmatrix2015-10-151-0/+27
| | | | re-usable, change refresh_all to use delivery loop.
* generate all (non-square) photo scales - even if the original photo is ↵redmatrix2015-10-151-3/+3
| | | | smaller than the scale target sizes.
* start hooking in the new webfinger/zot merged discoveryredmatrix2015-09-171-6/+10
|
* consolidate zotfinger and webfingerredmatrix2015-09-171-2/+2
|
* ensure connections have a nameredmatrix2015-09-101-0/+2
|
* initial work on obj import, rename import_profile_photo to ↵redmatrix2015-09-011-2/+2
| | | | import_xchan_photo to more accurately state its purpose.
* more work separating Diaspora from coreredmatrix2015-08-031-0/+5
|
* refresh diaspora xchan every month or so since receiving profile update ↵redmatrix2015-07-221-2/+20
| | | | messages from that network reliably are just as unlikely as receiving any other kind of message from that network reliably. The problem is that if somebody changes their profile name or photo once every few years and you miss it because of their shitty unreliable communications, your data could be stale for a long time.
* Merge branch 'master' of https://github.com/redmatrix/redmatrixredmatrix2015-07-211-1/+1
|\ | | | | | | | | Conflicts: doc/to_do_code.bb
| * Fixes regarding the new default profile photo size. The default profile ↵Mario Vavti2015-07-201-2/+2
| | | | | | | | photos are just renamed. People which provided the originals are invited to reproduce them in the new 300 by 300 px format.
* | Merge branch 'master' of https://github.com/redmatrix/redmatrixredmatrix2015-06-291-0/+90
|\| | | | | | | | | | | Conflicts: view/nl/messages.po view/nl/strings.php
| * some prep workredmatrix2015-06-291-0/+90
| |
* | Merge branch 'master' into tresredmatrix2015-05-141-1/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: include/Import/refimport.php include/activities.php include/attach.php include/event.php include/externals.php include/identity.php include/items.php include/notifier.php include/photos.php include/taxonomy.php include/zot.php mod/channel.php mod/connedit.php mod/events.php mod/item.php mod/like.php mod/manage.php mod/mood.php mod/ping.php mod/poke.php mod/subthread.php mod/tagger.php mod/thing.php
| * fix a couple of miscellaneous errors which showed up in the logsredmatrix2015-05-111-1/+4
| |
* | Merge branch 'master' into tresfriendica2015-04-231-49/+68
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Correcting reported Doxygen syntax warnings.Klaus Weidenbach2015-03-291-43/+56
| | | | | | | | | | | | | | Fixed wrong Doxygen syntax and add some of the available FIXME to Doxygen documentation. Updated Doxygen configuration to add also all capital letter tags. Adding some more Doxygen documentation.
| * Bugfix und variable initialization.Klaus Weidenbach2015-03-211-4/+3
| | | | | | | | | | Fixed a wrong perm_is_allowed() parameter, commented some other places where we use variables that are not set and should not work.
| * parse_url: if url returns an image/audio/video file instead of a webpage, ↵friendica2015-03-041-0/+7
| | | | | | | | return the bbcode for the appropriate content type. This results in two web fetches of the url in question, but the first one is just a HEAD. This way we won't try and download and parse an entire video. TODO: img's are checked to see if they should be zid-ified, but audio/video currently are not.
| * apply fix from 8d03774 to z_post_url alsofriendica2015-02-231-1/+1
| |
| * make redirections restriction in z_fetch_url() workzottel2015-02-231-1/+1
| |
| * fix for service_plink() after observing it in the wildfriendica2015-02-091-1/+1
| |
* | Merge branch 'master' into tresfriendica2015-02-081-0/+24
|\| | | | | | | | | | | Conflicts: mod/events.php view/css/mod_events.css
| * generate the correct service permalinkfriendica2015-02-081-0/+24
| |
* | Merge branch 'master' into tres and add some work on the item_deleted flag ↵friendica2015-01-261-6/+29
|\| | | | | | | | | | | | | | | | | | | refactor Conflicts: include/attach.php include/onedirsync.php include/zot.php mod/locs.php
| * Check allowed emails, also add blacklisting forChristian Vogeley2015-01-251-6/+29
| | | | | | | | | | not allowed emails: config:'system','not_allowed_email'
* | that should take care of the bitfields in hublocfriendica2015-01-201-3/+2
|/
* don't let dns_get_record() "write to screen" if it errors.friendica2015-01-061-2/+2
|
* add Thomas's Diaspora repair script as include/fixd.php - altered so it can ↵friendica2014-12-161-11/+13
| | | | | | be re-run if necessary with a count of remaining hublocs to be fixed. Some sites are down so it probably can't ever get to zero. The check for a null join is quite an expensive query. It could block your DB for a couple minutes while it runs. Also some preliminary work on a means to take the channel module out of list/forum mode if a specific mid is requested.
* Undo accidental reversion included in last checkinThomas Willingham2014-12-151-2/+2
|
* Doco: How to write foreign doco in how to write doco doco.Thomas Willingham2014-12-151-2/+3
|
* Let Diaspora hublocs come back by allowing discover_by_webbie() to carry on ifThomas Willingham2014-12-131-3/+2
| | | | | | and look for a hubloc even if an xchan is found. You'll probably need to loop through the missing ones manually.
* PostgreSQL support initial commitHabeas Codice2014-11-131-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* this bug has been there for a *long* time. First time I've ever seen it ↵friendica2014-10-131-1/+1
| | | | triggered.
* z_post_url_json() added to easily deal with JSON post APIs; without getting ↵friendica2014-09-161-0/+17
| | | | content-type unknown warnings/errors. Also added a debug option to z_get|post_url so you could track and log some of these nasty little buggers.
* just mark dead hubloc deleted - don't remove them. This could cause ↵friendica2014-09-161-11/+4
| | | | problems. Also clean up fetch_url/post_url header option
* doco correctionfriendica2014-09-091-11/+5
|
* syntax error in dba driver, document z_post_urlfriendica2014-09-091-0/+29
|
* allow stuff with Diaspora authors to federate in zot conversations even if ↵friendica2014-09-041-1/+1
| | | | the local site has diaspora disabled. This way it won't look like folks are talking to themselves.
* feed removal issuefriendica2014-09-021-5/+7
|
* use feed title for channel name before checking author, make feed items ↵friendica2014-09-021-5/+7
| | | | shareable (they're private to the channel so they won't be shown in searches), try and handle Diaspora mentions a bit more elegantly. (Bug: we don't convert mentions to Diaspora's format on outbound at all!)
* use feed icon as default avatar for rss connectionsfriendica2014-09-011-2/+5
|