aboutsummaryrefslogtreecommitdiffstats
path: root/include/diaspora.php
Commit message (Collapse)AuthorAgeFilesLines
* add connection filter to non-zot postsredmatrix2015-07-291-0/+5
|
* patch to allow theme based widgetsredmatrix2015-07-231-1/+0
|
* a few clone sync fixes as well as some work on hubzilla clone sync back to ↵redmatrix2015-07-021-0/+14
| | | | redmatrix
* discovered a couple of loose ends in the per-member enable diaspora settingredmatrix2015-06-221-0/+26
|
* toggle diaspora protocol on a per-channel level in addition to the existing ↵redmatrix2015-06-091-0/+19
| | | | per site setting. Default is enabled if the site setting is enabled.
* fix for forked thread on diasporaredmatrix2015-05-271-0/+5
|
* some work on issue #329redmatrix2015-05-251-2/+3
|
* missing $redmatrix2015-05-171-1/+1
|
* more work isolating the projectname from core.redmatrix2015-05-171-4/+4
|
* rev updateredmatrix2015-05-101-1/+1
|
* turn consensus items into diaspora polls for that networkredmatrix2015-05-051-0/+15
|
* mod_connections ajax failure see ↵friendica2015-03-291-0/+51
| | | | http://stackoverflow.com/questions/14347611/jquery-client-side-template-syntax-error-unrecognized-expression
* catche edge case of tag "@abcdef +1", which tags the first entry in your ↵friendica2015-03-241-3/+3
| | | | abook, regardless of abcdef. This holds true for other similar patterns as well.
* create terms for Diaspora mention tags - which in Diaspora are handled ↵friendica2015-03-131-3/+97
| | | | differently than other tag links and have to be done separately; they aren't processed by linkify_tags which handles all of our other tag processing. Also move the abook_channel clause in mod_network to the join statement. This works fine in mysql and achievies the desired result. I hope postgres can handle an expression as a join clause.
* invoke tgroup_check() on diaspora posts/comments in case the recipient is a ↵friendica2015-03-131-19/+34
| | | | forum with channel_w_stream permissions restricted.
* don't relay diaspora comments to sys channelfriendica2015-03-111-0/+6
|
* change default affinity (abook_closeness) to 80 for all new connections ↵friendica2015-03-081-1/+7
| | | | going forward (was 99). This way it can be adjusted down later without requiring you to change all your existing connections upward (since your existing connections are likely all sitting at 99 at the moment). The default setting is also configurable with a pconfig system.new_abook_closeness
* Diaspora tag replacement was wretchedly buggy. Use our standard tag ↵friendica2015-02-191-129/+27
| | | | replacement calls instead.
* diaspora: move reshare encapsulation after tag parsing, since it seriously ↵friendica2015-02-191-13/+12
| | | | screws up the tag parser and reshares end up with a lot of unlinked tags.
* The Diaspora communications policies allow comments to public posts ↵friendica2015-02-171-17/+35
| | | | literally from anybody. Allow this policy model by default for commenters from that network. This policy decision can be set or disabled on the addon/features settings page.
* provide relief to sites that are severely impacted by the slow ITEM_UNSEEN ↵friendica2015-02-121-2/+2
| | | | searches. This does not incorporate any other flag optimisations as that will require a major DB update and possibly involve significant downtime. This is just to bite off a little chunk now and provide some much needed relief.
* apply max_import_size to Diaspora postsfriendica2015-02-091-0/+43
|
* generate the correct service permalinkfriendica2015-02-081-6/+4
|
* over-ride permissions for sys channel delivery from diasporafriendica2015-02-051-9/+13
|
* another issue with diaspora postings to sys channel - sys has no ↵friendica2015-02-051-6/+14
| | | | connections, hence no abook records.
* diaspora public posts not delivering to sys channel if there were no other ↵friendica2015-02-041-4/+9
| | | | subscribers
* issue #885, autoperms not working for diaspora connectionsfriendica2015-01-311-1/+1
|
* implement diaspora profile message (oops) or updated profile photos won't be ↵friendica2015-01-291-21/+4
| | | | updated
* make sure we honour the disable_discover_tab preffriendica2015-01-281-1/+5
|
* allow diaspora posts to be delivered to the discover channel unless ↵friendica2015-01-281-1/+5
| | | | prohibited from doing so.
* friendica commenters are currently shown using "Diaspora" app. Try and fix ↵friendica2014-11-201-1/+6
| | | | this where we can.
* change logging of some troublesome or noisy bits so we can figure out what ↵friendica2014-11-191-1/+1
| | | | is really going on
* Merge remote-tracking branch 'upstream/master'Habeas Codice2014-11-131-11/+10
|\ | | | | | | | | | | | | | | | | | | | | | | 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
| * logging changes, untranslated stringfriendica2014-11-051-1/+1
| |
| * ok heads up - potentially destabilising change. I've tried to sort out all ↵friendica2014-11-041-10/+9
| | | | | | | | | | | | | | | | | | | | 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).
* | PostgreSQL support initial commitHabeas Codice2014-11-131-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* back to wrestling with the !@#$ diaspora recursive reshare from hellfriendica2014-10-141-3/+8
|
* diaspora_send_status() - recalculate markdown translation to pickup any ↵friendica2014-10-121-1/+1
| | | | later message changes after original submission like wall-to-wall attributions for instance. Normally this would've come from our cached version which was stored prior to tag_deliver being run and therefore isn't yet aware that wall-to-wall status may have changed after delivery.
* remove remnants of old signing structure - now using diaspora_metafriendica2014-10-101-7/+0
|
* reset route to parent route on Diaspora comments flowing upstream so they ↵friendica2014-10-101-3/+5
| | | | won't be rejected going downstream
* make sure diaspora comments get the correct routefriendica2014-10-101-0/+4
|
* don't double-encode hashtagsfriendica2014-10-081-4/+4
|
* log the recursive reshare from hell at logger_debug until we get through ↵friendica2014-10-071-3/+3
| | | | this mess.
* Make a best guess at how to pull the attribution from the recursive reshare ↵friendica2014-10-061-0/+4
| | | | from hell.
* found one bug trying to fetch the recursive reshare from hell. I still think ↵friendica2014-10-061-2/+2
| | | | there's a problem with attribution but we'll have to wait and find that once we have some content to track. Also in private messages, on the message list page, change the text from delete message to delete conversation, because that's what we're really doing.
* attempt to deal with the diaspora recursive reshare from hell (Bob reshared ↵friendica2014-10-051-10/+40
| | | | Nancy's reshare of George's reshare of Lilly's reshare of Nathan's post). The attribution may be wrong so this is still a work in progress.
* send dislike activities to diaspora as comments, also send likes and ↵friendica2014-10-051-13/+5
| | | | dislikes of comments as additional comments. We won't go into why this is necessary for a service that claims to support activitystreams.
* diaspora share not rendering issue - still have one remaining (the recursive ↵friendica2014-10-051-1/+1
| | | | share from hell)
* issues with diaspora comment signatures on relayed comments that are relayed ↵friendica2014-10-021-0/+3
| | | | through a redmatrix site (parent post is redmatrix) and involve a private post.
* diaspora private mail seems to work now - but there's an obfuscation leak ↵friendica2014-09-231-10/+11
| | | | via the conversation structure that needs to be dealt with.