aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notifications.php
Commit message (Collapse)AuthorAgeFilesLines
* static Appredmatrix2016-03-311-1/+1
|
* deprecate $a->get_baseurl()redmatrix2016-03-301-3/+3
|
* local_user => local_channelfriendica2015-01-281-5/+5
|
* PostgreSQL support initial commitHabeas Codice2014-11-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Add link to system notifications pageChristian Vogeley2014-05-041-0/+2
| | | | to mark notifications seen
* system notifications mark seen linkChristian Vogeley2014-05-041-0/+1
|
* yeah - that's what I'm going to do. we'll just keep system notifications. If ↵friendica2013-12-061-326/+0
| | | | somebody wants web pages for the others we'll start fresh. It's easier than starting with curfty friendica code that doesn't work anymore and will never work without starting over.
* some code cleanup - gad I forgot what a mess the "other" notifications tabs ↵friendica2013-12-061-97/+9
| | | | (everything but system) were in. Maybe I'll just remove them so we can start over.
* remove obsolete notificationsfriendica2013-07-211-17/+17
|
* start implementing zot-idfriendica2012-11-081-2/+2
|
* "profile url" e.g. the wall/stream is now "channel url". "Profile URL" goes ↵friendica2012-10-291-2/+2
| | | | to the profile details.
* more DB cleanupfriendica2012-08-301-1/+1
|
* well that was a silly mistake...friendica2012-04-131-2/+2
|
* setting wasn't being appliedfriendica2012-04-131-2/+2
|
* allow setting default new friend notifyfriendica2012-04-121-1/+1
|
* turn off new friend activity by defaultfriendica2012-04-121-1/+1
|
* Merge branch 'master' of https://github.com/friendica/friendicaAlexander Kampmann2012-04-051-3/+7
|\ | | | | | | | | | | Conflicts: include/config.php update.php
| * don't delete contact from a friend request if friendship was already establishedfriendica2012-03-301-1/+5
| |
| * zrl into people searchesfriendica2012-03-291-2/+2
|/
* missed a default profile photo replacement in notificationsfriendica2012-03-201-1/+1
|
* change default profile photo to something more interesting than a reddish ↵friendica2012-03-201-1/+1
| | | | brown square
* basic ssl_policy for important modulesfriendica2012-03-141-22/+22
|
* system notifications to notify module, untranslated string in notifications.tplfriendica2012-02-231-4/+4
|
* new notify sort of working in testbubblefriendica2012-02-221-0/+35
|
* add toggle to choose sending "friends with" activity even if contact is not ↵friendica2012-02-061-0/+3
| | | | hidden
* redirect to a useful location after deleting or ignoring a friend request, ↵friendica2012-01-241-2/+2
| | | | begin comment moderation logic
* add remove_user hook (it looks like dreamhost changed all my file ↵friendica2012-01-181-0/+0
| | | | permissions, this will make a nasty commit)
* hide contacts on approvalfriendica2011-12-291-0/+2
|
* include diaspora mentions in personal (requires adding a Diaspora profile ↵friendica2011-12-061-2/+4
| | | | url because they don't use ours)
* personal notificationsfriendica2011-11-301-3/+106
|
* another fix to tabs in notificationsFabio Comuni2011-10-171-3/+0
|
* fix tabs in notificationsFabio Comuni2011-10-171-7/+5
|
* Merge remote-tracking branch 'friendika/master'Fabio Comuni2011-10-171-21/+44
|\
| * common tabs to notifications and mailFriendika2011-10-111-3/+37
| |
* | common_tabs in notifications.phpFabio Comuni2011-10-101-9/+21
|/
* more notification cleanup duepuntozeroFriendika2011-10-091-2/+2
|
* some notification text cleanup and notification page layout fixes for ↵Friendika2011-10-091-15/+12
| | | | duepuntozero
* added posts to network section of the notifications pageDevlon Duthie2011-10-081-3/+12
|
* fix for 'show all notifications' on notifications drop-down to handle ↵Devlon Duthie2011-10-081-2/+12
| | | | installations in sub-directories + fix for friend notifications (eg: joe became friends with sam)
* Anne set testbubble banner to be fixed, I added the other notification types ↵Devlon Duthie2011-10-071-89/+236
| | | | to /notifcations, added link to notifcations drop-down for all notifications and added notifications drop-down to testbubble theme
* remove javascript to set selectect nav item. enanche img template prefetch ↵fabrixxm2011-08-171-1/+1
| | | | ignoring
* Merge remote-tracking branch 'friendika/master' into newuifabrixxm2011-08-171-9/+11
|\
| * diaspora confirm cleanupFriendika2011-08-151-3/+5
| |
| * diaspora friend approvalsFriendika2011-08-151-5/+5
| |
| * some more zot changes migrating back to f9a mainlineFriendika2011-08-011-2/+2
| |
* | change nav selected css classFabio Comuni2011-07-251-1/+1
|/
* now that we have admin interface, completely remove register approvals from ↵Friendika2011-06-291-24/+0
| | | | notifications
* recipient ui, friend suggestionsFriendika2011-06-261-12/+43
|
* add info() function. Works like notice() but show messages in a div with ↵Fabio Comuni2011-05-231-2/+2
| | | | | | | class info-message. update code to use info() instead of notice() when appropriate (non-error message) add info-message class style in themes
* deny link not clickable on admin approval notification pageFriendika2011-05-201-1/+1
|