aboutsummaryrefslogtreecommitdiffstats
path: root/mod
Commit message (Collapse)AuthorAgeFilesLines
* violates new sql standardsHabeas Codice2014-11-131-1/+1
| | | | missed during merge
* Merge remote-tracking branch 'upstream/master'Habeas Codice2014-11-1320-854/+1123
|\ | | | | | | | | | | | | | | | | | | | | | | 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
| * this should make all the 'sys' webpage design tools useable by the adminfriendica2014-11-124-156/+211
| |
| * Merge https://github.com/friendica/red into pending_mergefriendica2014-11-121-1/+2
| |\
| | * make search and advanced search use the same input formmarijus2014-11-121-1/+2
| | |
| * | sys edit ability to menus and menu itemsfriendica2014-11-122-60/+96
| |/
| * extend sys support to layoutsfriendica2014-11-123-131/+211
| |
| * uid not set in webpages.php, start on editwebpage.phpfriendica2014-11-112-38/+72
| |
| * cleanupfriendica2014-11-111-37/+45
| |
| * slow progress on sys publishing, making sure all the data we need is in the ↵friendica2014-11-111-6/+21
| | | | | | | | places we need it but validate it anyway
| * some more work on sys publishingfriendica2014-11-112-33/+40
| |
| * a couple of places where we need to look for a sys channel euid.friendica2014-11-111-10/+18
| |
| * Nothing here, move along.friendica2014-11-111-2/+2
| |
| * add some subtle delineation to directory entries, remove forced link on ↵friendica2014-11-111-1/+1
| | | | | | | | homepage element (SECURITY)
| * the code is a bit crufty, but this should fix issue #687friendica2014-11-111-0/+16
| |
| * Merge https://github.com/friendica/red into pending_mergefriendica2014-11-101-28/+25
| |\
| | * Merge pull request #686 from beardy-unixer/masterRedMatrix2014-11-111-28/+25
| | |\ | | | | | | | | Add a new theme flag - library. Not directly available to be used itsel...
| | | * Add a new theme flag - library. Not directly available to be used itself butThomas Willingham2014-11-101-28/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | installed as a lib for other themes. Like SDL, or GTK. Get rid of mobility - it's better done with Comanche and schemas. Describe themes instead of restricting them. Mobile themes can be used as the desktop theme and vice-versa. This deals with the problem of "but my device is something inbetween". Presently not exposed to members.
| * | | issue #683 - don't linkify homepage field without validatingfriendica2014-11-101-0/+2
| |/ /
| * | indicate public forums in directory results (there will be some [possibly ↵friendica2014-11-102-0/+5
| | | | | | | | | | | | considerable] lag time before existing forums are correctly tagged).
| * | add public forum identification to libzot. No attempt is made to identify ↵friendica2014-11-101-0/+16
| | | | | | | | | | | | other types of forums or weird custom channel permissions. If the channel is auto-accept and taggable, it's a public forum.
| * | class is a reserved wordfriendica2014-11-101-4/+4
| |/
| * menu page cleanupfriendica2014-11-091-15/+17
| |
| * remove extraneous loggingfriendica2014-11-091-4/+1
| |
| * directory listing shows phantom keywordsfriendica2014-11-091-1/+3
| |
| * New layout for directoryStefan Parviainen2014-11-092-191/+49
| |
| * Merge https://github.com/friendica/red into pending_mergefriendica2014-11-071-5/+6
| |\
| | * provide lockstate for photo editmarijus2014-11-071-5/+6
| | |
| * | fix broken photo edits when adult flag is changedfriendica2014-11-071-8/+7
| |/
| * Provide a way to mark photos as adult and hide them from the default album ↵friendica2014-11-061-27/+31
| | | | | | | | 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.
| * provide a lockstate for photo uploadsmarijus2014-11-061-1/+4
| |
| * crude skeleton for location manager and the UI sucks but at least it's on a ↵friendica2014-11-051-28/+42
| | | | | | | | webpage and you don't have to do it by hand.
| * some minor cleanup of unreported (and as yet undiscovered) issues with ↵friendica2014-11-051-0/+1
| | | | | | | | permissions toggling. No smoking guns and no obvious issues discovered here. Repeated and tried to duplicate zottell's issue as described without seeing any obvious problems.
| * changed notification descriptionfriendica2014-11-041-1/+1
| |
| * minor adjustments to make the form work as designedfriendica2014-11-041-2/+3
| |
| * ok heads up - potentially destabilising change. I've tried to sort out all ↵friendica2014-11-041-10/+18
| | | | | | | | | | | | | | | | | | | | the default connection permissions for those who don't have a predefined (or therefore have a "custom") permissions role. Unfortunately this includes most people that were using this software more than a month ago. The real changes are that the SELF address book entry no longer holds "auto-permissions" but instead holds your "default permissions" (if you have a pre-defined role, the defaults will be pulled from the role table). The auto permissions have moved to a pconfig (uid.system.autoperms). A DB update will move these settings into their new homes. What used to be the "Auto-permissions settings" page is now the "default permissions settings" page and a checkbox therein decides whether or not to apply the permissions automatically. A link to this page will only be shown when you have the "custom" role selected. With luck nobody will notice anything wrong. But at least for the next few days, please review permissions that have been assigned to new connections (either automatically or manually) and make sure they make sense (e.g. they aren't "nothing"). You still need to take action when seeing a message "permissions have changed but not yet submitted" as we always let you review and perhaps adjust the settings _before_ a connection is established (unless you have autoperms turned on).
| * configurable visual alerts/notificationsfriendica2014-11-042-72/+166
| |
| * wall posted comment to a top-level wall post which arrived via a route (e.g. ↵friendica2014-11-031-0/+3
| | | | | | | | was posted to a forum) had no route, hence downstream recipients report route mismatch
| * if uploading a photo go away to albummarijus2014-11-031-2/+7
| |
| * if deleting a photo go away to albummarijus2014-11-031-1/+3
| |
| * even more photos workmarijus2014-11-011-11/+9
| |
* | PostgreSQL support initial commitHabeas Codice2014-11-1348-234/+267
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* check that we have valid datafriendica2014-11-011-10/+16
|
* do not reload page for photo uploadmarijus2014-10-311-12/+8
|
* more work on photo uploadmarijus2014-10-311-7/+5
|
* Merge https://github.com/friendica/red into pending_mergefriendica2014-10-301-36/+13
|\
| * some work on photo uploadmarijus2014-10-301-36/+13
| |
* | What this checkin does is catch the case where a comment arrived and there's ↵friendica2014-10-302-2/+16
| | | | | | | | a missing top-level post to match it with. So we'll send a request back to the sender that you've never seen this thread and please send a fresh copy of the entire conversation to date. We could soon have posts in the matrix from different platforms from days gone by, which have been migrated into the modern world. We'll be polite and not deliver these to everybody. However, if someone comments on one of these antique threads we wouldn't be able to see it in our own matrix because we won't have a copy of the parent post. So this rectifies that situation. Be aware that item deletion may need to change to keep "hard deleted" items indefinitely so that they don't keep coming back. We'll have to null out the important data of the former item to accomplish the deletion aspect.
* | allow feed pagingfriendica2014-10-291-0/+3
|/
* if any privacy tags are created on a top level post, restrict the post; ↵friendica2014-10-281-1/+14
| | | | since it could have been quite sensitive. If there were errors processing the actual tag restrict the post to the profile owner. Also make the "privacy tag over-rides ACL" behaviour configurable. Default is that privacy tags over-ride the ACL.