Commit graph

452 commits

Author SHA1 Message Date
Stefan Parviainen
5c20287f95 Document the auto_follow option 2014-12-15 17:17:15 +01:00
friendica
d3465802d6 doc update 2014-12-12 00:28:05 -08:00
friendica
452d275b5e don't import to sys channel from self-censored authors 2014-12-12 00:26:07 -08:00
friendica
7f1a42340a Merge https://github.com/friendica/red into pending_merge 2014-12-10 16:26:36 -08:00
friendica
58067c24fc block adult channels from inclusion in public content feeds 2014-12-10 16:24:31 -08:00
Thomas Willingham
a23af1f5f7 Issue #732 2014-12-09 19:14:58 +00:00
zzottel
88cfdb864c Merge pull request #731 from zzottel/master
add main_footer include to all .md files except TOS and README
2014-12-08 11:13:11 +01:00
zottel
8ddf16f1ee add main_footer include to all .md files except TOS and README 2014-12-08 11:06:37 +01:00
Christian Vogeley
f3789b1aeb merge 2014-12-07 16:09:03 +01:00
Christian Vogeley
098eb66ba0 merge 2014-12-07 16:07:34 +01:00
friendica
80ed4193f7 Merge https://github.com/friendica/red into pending_merge 2014-11-28 18:48:38 -08:00
friendica
af3bf10d2f doc updates 2014-11-28 18:47:59 -08:00
Thomas Willingham
728a0667c5 Doco - #710 flipped the colours. Unsurprisingly, they were the other
way round because they were created on a dark theme.  The right thing
to do is not to specify a colour at all, and let the themes handle it.
2014-11-28 18:02:58 +00:00
Andrew Manning
d89d4630d0 Documentation wording
Improved wording. Replaced white colored text with black because the
default theme makes the white invisible.
2014-11-25 06:46:06 -05:00
zottel
22340d105b update to Germanmain help file 2014-11-24 11:56:15 +01:00
friendica
746e4860fa more roadmap 2014-11-23 15:09:07 -08:00
friendica
d191e7c348 project roadmap 2014-11-23 14:51:04 -08:00
friendica
86b6861aae Merge https://github.com/friendica/red into pending_merge 2014-11-22 12:26:33 -08:00
friendica
b16f938830 random block widget 2014-11-22 12:26:04 -08:00
friendica
c785b5a90c doc updates 2014-11-22 12:25:49 -08:00
Habeas Codice
cf739c0361 Merge remote-tracking branch 'upstream/master' 2014-11-21 15:39:14 -08:00
Habeas Codice
b224f8056c new system config reserved_channels
prevents members from creating channels in a reserved list
2014-11-21 15:35:59 -08:00
friendica
afd8b2ddf2 random photo widget 2014-11-20 15:34:49 -08:00
friendica
7a1b345bc2 to-do update 2014-11-20 03:12:06 -08:00
Habeas Codice
6413395a76 Merge remote-tracking branch 'upstream/master' 2014-11-18 12:14:14 -08:00
Habeas Codice
6cc906fd1d update docs 2014-11-18 12:10:40 -08:00
friendica
7b39fac5f0 forgot to add catcloud to the widget doc 2014-11-17 20:11:05 -08:00
Habeas Codice
333f3b1715 Merge remote-tracking branch 'upstream/master' 2014-11-17 03:20:20 -08:00
friendica
87cdfc1751 doc updates 2014-11-15 14:03:28 -08:00
habeascodice
2dbecf9545 Merge branch 'master' of https://github.com/habeascodice/red 2014-11-13 13:30:29 -08:00
Habeas Codice
ac27db22c1 Merge remote-tracking branch 'upstream/master'
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
2014-11-13 13:06:31 -08:00
Habeas Codice
1a5a5c7edb PostgreSQL support initial commit
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)
2014-11-13 12:21:58 -08:00
friendica
226d695525 make it a bit personal 2014-11-12 23:55:04 -08:00
friendica
1c1705e060 ok, I think I'll give it a break now. 2014-11-12 19:43:54 -08:00
friendica
a77abb0694 minor word tweaks 2014-11-12 19:04:24 -08:00
friendica
634475164e wordsmith 2014-11-12 16:11:18 -08:00
friendica
9478fd7fd4 more minor wordsmithing 2014-11-12 16:04:49 -08:00
friendica
f41c748fe2 Some dates couldn't be verified without going way back in the archives so at least make this document accurate based on what I have in front of me. 2014-11-12 15:47:29 -08:00
friendica
40e3da7b4f add history link 2014-11-12 15:40:11 -08:00
friendica
4e7567ffa2 History of RedMatrix, Friendica, Mike Macgirvin, and associated other stuff. 2014-11-12 15:31:24 -08:00
Thomas Willingham
b29a968be8 Document reinstalling, or saying don't do that without explicitly stating don't do that. 2014-11-08 00:17:53 +00:00
zottel
add493ef4d update to German help files 2014-11-07 22:46:39 +01:00
friendica
d17c15a992 doc updates 2014-11-07 05:14:53 -08:00
friendica
e32a339a3d doc updates 2014-11-01 00:36:01 -07:00
friendica
7f0bd5a6e5 doc updates 2014-10-31 05:05:31 -07:00
Thomas Willingham
fbd027709a Debian doco - no longer uses dropbear. 2014-10-31 01:13:56 +00:00
habeascodice
bc02b93372 Merge remote branch 'upstream/master' 2014-10-29 03:39:07 -07:00
friendica
1b53d1c1d3 Merge https://github.com/friendica/red into pending_merge 2014-10-27 16:20:59 -07:00
friendica
583b445bc0 add "repository" permissions role and make sure we have a sane "accept" default for the custom role. 2014-10-27 16:19:30 -07:00
Jeroen
6ff795a9f2 Merge branch 'master' of https://github.com/friendica/red 2014-10-27 15:06:34 +00:00