]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
10 years agoINSTALL docs updated, htaccess.sample more generic
Mikael Nordfeldth [Sat, 5 Oct 2013 12:28:41 +0000 (14:28 +0200)]
INSTALL docs updated, htaccess.sample more generic

10 years agoWe don't need _that_ noisy queue managers...
Mikael Nordfeldth [Sat, 5 Oct 2013 11:12:16 +0000 (13:12 +0200)]
We don't need _that_ noisy queue managers...

10 years agoIM/XMPP Plugin classes use throwing getParent
Mikael Nordfeldth [Sat, 5 Oct 2013 10:30:52 +0000 (12:30 +0200)]
IM/XMPP Plugin classes use throwing getParent

10 years agogetParent throws exception
Mikael Nordfeldth [Sat, 5 Oct 2013 10:30:14 +0000 (12:30 +0200)]
getParent throws exception

Should we get another Exception for if there's no parent? I think so,
because it's not really the same context as 'no result'.

10 years agoMerge-request 3 by pztrn, IM reply more intuitive
Mikael Nordfeldth [Sat, 5 Oct 2013 09:33:25 +0000 (11:33 +0200)]
Merge-request 3 by pztrn, IM reply more intuitive

10 years agoFix Avatar-unlink plus better logging in TwitterImport
Mikael Nordfeldth [Sat, 5 Oct 2013 09:32:43 +0000 (11:32 +0200)]
Fix Avatar-unlink plus better logging in TwitterImport

10 years agoAdopted merge request #232 from statusnet to gnusocial
pztrn [Sat, 5 Oct 2013 08:36:48 +0000 (12:36 +0400)]
Adopted merge request #232 from statusnet to gnusocial

10 years agoLatest phpseclib stuff and moved into its own dir.
Mikael Nordfeldth [Fri, 4 Oct 2013 22:16:07 +0000 (00:16 +0200)]
Latest phpseclib stuff and moved into its own dir.

Source: https://github.com/phpseclib/phpseclib/
Commit: 77447a3fc7869773007fa3beeb8d6f8de842ec2a

There were bugs.

10 years agois_a() with 3 params only supported in 5.3.9 anyway
Mikael Nordfeldth [Fri, 4 Oct 2013 21:10:59 +0000 (23:10 +0200)]
is_a() with 3 params only supported in 5.3.9 anyway

So I removed those safety-checks, because now we can assume it works.

10 years agoProperly defined globals, $_PEAR caused install to fail. (thanks DRiKE)
Mikael Nordfeldth [Fri, 4 Oct 2013 18:49:07 +0000 (20:49 +0200)]
Properly defined globals, $_PEAR caused install to fail. (thanks DRiKE)

10 years agoTwitter Import improvements. Still buggy?
Mikael Nordfeldth [Fri, 4 Oct 2013 11:36:45 +0000 (13:36 +0200)]
Twitter Import improvements. Still buggy?

Apparently mrvdb has problems with duplicate inserts and missing files when
unlinking. It could be due to coding, or it could be due to parallelizing.

10 years agoTwitter Import + avatar fixes (cleaning up + fixing)
Mikael Nordfeldth [Wed, 2 Oct 2013 18:16:08 +0000 (20:16 +0200)]
Twitter Import + avatar fixes (cleaning up + fixing)

...there was also a typo in OstatussubAction ($avatarUrl not defined)

10 years agoDo not name anything getOriginal (because DB_DataObject calls that)
Mikael Nordfeldth [Wed, 2 Oct 2013 13:01:11 +0000 (15:01 +0200)]
Do not name anything getOriginal (because DB_DataObject calls that)

Avatar->getOriginal has been renamed getUploaded
Notice->getOriginal has been renamed getParent

10 years agoVarious minor Avatar fixes, but pretty necessary.
Mikael Nordfeldth [Wed, 2 Oct 2013 12:37:10 +0000 (14:37 +0200)]
Various minor Avatar fixes, but pretty necessary.

One typing thing. And a missed exception case.

Get src from displayUrl() instead of url for example.

10 years agoPlugin onAutoload replaces _ with / in lib paths, this renames some classes.
Mikael Nordfeldth [Wed, 2 Oct 2013 12:07:53 +0000 (14:07 +0200)]
Plugin onAutoload replaces _ with / in lib paths, this renames some classes.

10 years agoPHP Notice: Trying to get property of non-object
Mikael Nordfeldth [Tue, 1 Oct 2013 15:43:46 +0000 (17:43 +0200)]
PHP Notice:  Trying to get property of non-object

The notice was reported in /srv/www/vhosts/se/umeahackerspace/social/%/htdocs/lib/inboxtagcloudsection.php on line 63

10 years agoPHP Notice: Undefined variable: logo
Mikael Nordfeldth [Tue, 1 Oct 2013 15:07:16 +0000 (17:07 +0200)]
PHP Notice:  Undefined variable: logo

It was reported in actions/apitimelinetag.php on line 142

10 years agoProperly unlink all old avatars when deleting/uploading a new
Mikael Nordfeldth [Tue, 1 Oct 2013 09:37:59 +0000 (11:37 +0200)]
Properly unlink all old avatars when deleting/uploading a new

We're also now using $config['image']['jpegquality'] to determine the
quality setting for resized images.

To set Avatar max size, adjust $config['avatar']['maxsize']

The getAvatar call now throws exceptions too. Related changes applied.
Now let's move Profile->avatarUrl to the Avatar class!

10 years agoFixed regression in OStatus sub from WebFinger/XML_XRD update
Mikael Nordfeldth [Mon, 30 Sep 2013 21:12:35 +0000 (23:12 +0200)]
Fixed regression in OStatus sub from WebFinger/XML_XRD update

XML_XRD::getAll requires arguments (at least relation). If one really
want all links, just get the 'links' array. It's public!

Also, not all XML_XRD_Element_Link were migrated from the previous
array style.

10 years agoFixed regression in latest Avatar fixes
Mikael Nordfeldth [Mon, 30 Sep 2013 20:49:47 +0000 (22:49 +0200)]
Fixed regression in latest Avatar fixes

I thought typing would fix it, but there's a problem earlier in the
execution chain which will be fixed in the future.

10 years agoFix regression from WebFinger update for singleuser sites
Mikael Nordfeldth [Mon, 30 Sep 2013 20:42:20 +0000 (22:42 +0200)]
Fix regression from WebFinger update for singleuser sites

10 years agoAvatar resizing improvements and better code reuse
Mikael Nordfeldth [Mon, 30 Sep 2013 20:13:37 +0000 (22:13 +0200)]
Avatar resizing improvements and better code reuse

* getOriginal added to Avatar class
    This is a static function that retrieves the original avatar in a leaner
    way than Profile->getOriginalAvatar() did (see below).
    This will throw an Exception if there was none to be found.

* getProfileAvatars added to Avatar class
    This gets all Avatars from a profile and returns them in an array.

* newSize added to Avatar class
    This will scale an original avatar or throw an Exception (originally from
    Avatar::getOriginal) if one wasn't found.

* deleteFromProfile added to Avatar class
    Deletes all avatars for a Profile. This makes the code much smarter when
    removing all avatars from a user.
    Previously only specific, hardcoded (through constants) sizes would be
    deleted. If you ever changed lib/framework.php then many oddsized avatars
    would remain with the old method.

* Migrated Profile class to new Avatar::getOriginal support
    Profile class now uses Avatar::getOriginal through its own
    $this->getOriginalAvatar and thus remains backwards compatible.

* Updating stock GNU Social to use Avatar::getOriginal
    All places where core StatusNet code used the
    $profile->getOriginalAvatar, it will now useAvatar::getOriginal with
    proper error handling.

* Updated Profile class to use Avatar::newSize
    When doing setOriginal, the scaling will be done with the new method
    introduced in this merge.
    This also edits the _fillAvatar function to avoid adding NULL values to
    the array (which causes errors when attempting to access array entries as
    objects). See issue #3478 at http://status.net/open-source/issues/3478

10 years agoImplemented WebFinger and replaced our XRD with PEAR XML_XRD
Mikael Nordfeldth [Mon, 30 Sep 2013 15:13:03 +0000 (17:13 +0200)]
Implemented WebFinger and replaced our XRD with PEAR XML_XRD

New plugins:
* LRDD
    LRDD implements client-side RFC6415 and RFC7033 resource descriptor
    discovery procedures. I.e. LRDD, host-meta and WebFinger stuff.

    OStatus and OpenID now depend on the LRDD plugin (XML_XRD).

* WebFinger
    This plugin implements the server-side of RFC6415 and RFC7033. Note:
    WebFinger technically doesn't handle XRD, but we serve both that and
    JRD (JSON Resource Descriptor), depending on Accept header and one
    ugly hack to check for old StatusNet installations.

    WebFinger depends on LRDD.

We might make this even prettier by using Net_WebFinger, but it is not
currently RFC7033 compliant (no /.well-known/webfinger resource GETs).

Disabling the WebFinger plugin would effectively render your site non-
federated (which might be desired on a private site).

Disabling the LRDD plugin would make your site unable to do modern web
URI lookups (making life just a little bit harder).

10 years agoCorrectly distribute notices from remote posters through local groups to remote group...
Joshua Judson Rosen [Sun, 29 Jul 2012 22:17:16 +0000 (18:17 -0400)]
Correctly distribute notices from remote posters through local groups to remote group-members via OStatus.
Allow the OStatus queue-handler to handle all posts,
and give it the smarts required to make correct decisions
about whether it should or shouldn't relay notices
over OStatus.
cf. http://status.net/open-source/issues/3540

Conflicts (staticGet => getKV):

plugins/OStatus/lib/ostatusqueuehandler.php

10 years agoCorrect a logic-inverting typo in handling of replies to group-posts.
Joshua Judson Rosen [Sun, 29 Jul 2012 21:54:48 +0000 (17:54 -0400)]
Correct a logic-inverting typo in handling of replies to group-posts.
The typo causes a tautology, which makes replies to group-posts always (or almost-always) go to the group(s).
cf. http://status.net/open-source/issues/3638

10 years agoAllow the hostmeta to indirect from one domain to another.
Joshua Judson Rosen [Tue, 19 Jun 2012 03:44:02 +0000 (23:44 -0400)]
Allow the hostmeta to indirect from one domain to another.
e.g.: rozzin@hackerposse.com => rozzin@status.hackerposse.com.

10 years agoMake the ForceGroup plugin work consistently for notices from remote users.
Joshua Judson Rosen [Tue, 19 Jun 2012 03:39:47 +0000 (23:39 -0400)]
Make the ForceGroup plugin work consistently for notices from remote users.

10 years agoMake paging work correctly in the user-directory
Joshua Judson Rosen [Tue, 19 Jun 2012 03:21:57 +0000 (23:21 -0400)]
Make paging work correctly in the user-directory
even with the default filter set (i.e.: `all' = `no filter', so intrepret `filter=all' as `no filter').

10 years agoRemove bad common_path() call in context of cssLink().
Joshua Judson Rosen [Sat, 28 Apr 2012 03:58:10 +0000 (23:58 -0400)]
Remove bad common_path() call in context of cssLink().

10 years agoAutocomplete action must exist on user registration
Mikael Nordfeldth [Sun, 29 Sep 2013 13:28:25 +0000 (15:28 +0200)]
Autocomplete action must exist on user registration

No need to restrict the autocomplete suggestion system to logged in users.
It only botched the registration process, because the 'autocomplete' action
had not been connected in the routing system.

10 years agoMaking sure scripts and tests check for GNUSOCIAL defined (instead of STATUSNET)
Mikael Nordfeldth [Sat, 28 Sep 2013 13:20:10 +0000 (15:20 +0200)]
Making sure scripts and tests check for GNUSOCIAL defined (instead of STATUSNET)

Orbited plugin may not work at all anymore, I had no means to try it.
But there's a check whether 'LACONICA' is defined there, which is a
very unlikely thing in the future. So far only tests and scripts have
been migrated consistently, though.

10 years agoUncaught exception when no subscribers/subscriptions in ProfileList
Mikael Nordfeldth [Wed, 25 Sep 2013 22:47:56 +0000 (00:47 +0200)]
Uncaught exception when no subscribers/subscriptions in ProfileList

10 years agomaxNoticeLength test for url-shortening failed on maxContent==0
Mikael Nordfeldth [Wed, 25 Sep 2013 20:48:32 +0000 (22:48 +0200)]
maxNoticeLength test for url-shortening failed on maxContent==0

maxContent==0 implies that a notice text can be infinitely long, but
this value was directly transferred to maxNoticeLength, where 0 was
tested if it was longer than the notice length - which of course always
was false.

This commit fixes the problem for infinite length notices that always
got shortened.

10 years agoUpdated some of the INSTALL documentation
Mikael Nordfeldth [Tue, 24 Sep 2013 10:15:12 +0000 (12:15 +0200)]
Updated some of the INSTALL documentation

Also we now recommend the mysqlnd driver, instead of 'mysql', so no need
to mention deprecation in daemon.php comments.

10 years agoAdded queue daemon notice about disabled forking functions
Mikael Nordfeldth [Tue, 24 Sep 2013 09:37:17 +0000 (11:37 +0200)]
Added queue daemon notice about disabled forking functions

10 years agoFilling in missing endHTML calls for Action AJAX
Mikael Nordfeldth [Tue, 24 Sep 2013 00:32:17 +0000 (02:32 +0200)]
Filling in missing endHTML calls for Action AJAX

This completes 1c6f9df80e7e6927e964fdfdd72fda9b15106ddd where a lot
of other functions were fixed (by conforming to startHTML and endHTML)

10 years agophpseclib extlib updated from phpseclib.sf.net
Mikael Nordfeldth [Tue, 24 Sep 2013 00:09:37 +0000 (02:09 +0200)]
phpseclib extlib updated from phpseclib.sf.net

10 years agoUpdating Janrain OpenID auth library
Mikael Nordfeldth [Mon, 23 Sep 2013 23:49:34 +0000 (01:49 +0200)]
Updating Janrain OpenID auth library

Source: https://github.com/openid/php-openid

10 years agohtmLawed extlib updated
Mikael Nordfeldth [Mon, 23 Sep 2013 23:37:38 +0000 (01:37 +0200)]
htmLawed extlib updated

10 years agoCompleting extra-element-without-text patch from 4015a58d1cfaa257fcf2b01aa6b1c9daa268c997
Mikael Nordfeldth [Mon, 23 Sep 2013 23:26:18 +0000 (01:26 +0200)]
Completing extra-element-without-text patch from 4015a58d1cfaa257fcf2b01aa6b1c9daa268c997

10 years agoPHP5.5 fix: Better use of startXML for Action classes (mostly AJAX)
Mikael Nordfeldth [Mon, 23 Sep 2013 23:17:04 +0000 (01:17 +0200)]
PHP5.5 fix: Better use of startXML for Action classes (mostly AJAX)

I had a problem with PHP5.5 that caused ajax responses to be empty. This
fixes it, as the problem was related to pretty inconsistent calling to
headers, XMLWriter::startDocument etc. etc.

10 years agoArray to string conversion in queuemanager logger
Mikael Nordfeldth [Mon, 23 Sep 2013 22:40:23 +0000 (00:40 +0200)]
Array to string conversion in queuemanager logger

10 years agoSometimes there's no text content, so pad the array (thanks mrvdb)
Mikael Nordfeldth [Mon, 23 Sep 2013 22:12:30 +0000 (00:12 +0200)]
Sometimes there's no text content, so pad the array (thanks mrvdb)

mrvdb used '' rather than null for the padding argument. MMN-o changed that.

10 years ago$_PEAR now defined globally as new PEAR, so no static calls are made
Mikael Nordfeldth [Mon, 23 Sep 2013 20:27:17 +0000 (22:27 +0200)]
$_PEAR now defined globally as new PEAR, so no static calls are made

10 years agoStylesheet event now removed of StatusNet-remnants
Mikael Nordfeldth [Tue, 17 Sep 2013 18:41:54 +0000 (20:41 +0200)]
Stylesheet event now removed of StatusNet-remnants

10 years agoIMPORTANT: 'GNUSOCIAL' defined, or daemons wouldn't work
Mikael Nordfeldth [Mon, 23 Sep 2013 20:10:26 +0000 (22:10 +0200)]
IMPORTANT: 'GNUSOCIAL' defined, or daemons wouldn't work

Apparently I forgot scripts/commandline.inc in the commit for 'GNUSOCIAL'
definition 4c6803a0540243c2ae1e36b6fafc8728e69473cc.

define('GNUSOCIAL', true); indicates that we're running GNUSOCIAL, and that
one should be aware of this if applying patches.

10 years agoWrong call signature used for Event::handle
Marcel van der Boom [Mon, 23 Sep 2013 10:32:30 +0000 (12:32 +0200)]
Wrong call signature used for Event::handle

Call needs 2nd parameter to be array.

10 years agoFavorAction upgraded to extend FormAction
Mikael Nordfeldth [Mon, 23 Sep 2013 09:34:15 +0000 (11:34 +0200)]
FavorAction upgraded to extend FormAction

Includes some minor changes to other things as well, such as the session
token input element now having the same 'name' attribute as everyone else.
(it still retains a 'token-'+noticeid 'id' attribute for clientside JS)

10 years agoFixed regression in bookmark.js that caused double-submits (jquery 2.x stuff)
Mikael Nordfeldth [Mon, 23 Sep 2013 10:07:37 +0000 (12:07 +0200)]
Fixed regression in bookmark.js that caused double-submits (jquery 2.x stuff)

In 6de3fc02173017f6fb46e8e86c87228c3d7237a0 bookmark.js was patched to
jquery 2.x (removed '.die' call) but unfortunately the 'submit' event
was attached to an input element instead of a form element (which got
a 'click' event).

10 years agoShouldn't define static classes as abstract.
Mikael Nordfeldth [Sat, 21 Sep 2013 16:44:05 +0000 (18:44 +0200)]
Shouldn't define static classes as abstract.

New Exception class added (MethodNotImplementedException)

10 years agoSubscription "get by" functions now don't use ArrayWrappers
Mikael Nordfeldth [Sat, 21 Sep 2013 16:26:58 +0000 (18:26 +0200)]
Subscription "get by" functions now don't use ArrayWrappers

They were getting in the way of some strict-typing stuff.

10 years agoNew Managed_DataObject retrieval: listFind
Mikael Nordfeldth [Sat, 21 Sep 2013 14:55:18 +0000 (16:55 +0200)]
New Managed_DataObject retrieval: listFind

This will return a proper DB_DataObject instance (as the desired class)
and not an array, or ArrayWrapper.

10 years agoMake better use of Subscription class
Mikael Nordfeldth [Thu, 19 Sep 2013 15:20:44 +0000 (17:20 +0200)]
Make better use of Subscription class

removed lib/subs.php as it was essentially only a wrapper for Subscription

10 years agoinstanceof instead of is_a is faster (thanks quix0r)
Mikael Nordfeldth [Thu, 19 Sep 2013 14:37:39 +0000 (16:37 +0200)]
instanceof instead of is_a is faster (thanks quix0r)

10 years agoStatusNet_HTTPResponse now prefixed with GNUSocial_
Mikael Nordfeldth [Thu, 19 Sep 2013 14:11:04 +0000 (16:11 +0200)]
StatusNet_HTTPResponse now prefixed with GNUSocial_

10 years agourl shortening fixes for api config and not ur1.ca
Mikael Nordfeldth [Wed, 18 Sep 2013 23:11:47 +0000 (01:11 +0200)]
url shortening fixes for api config and not ur1.ca

Will have to change the 'maxnoticelength' code to stop shortening ALL
links if the setting for infinitely long notices is configured.

10 years ago8 chars was too little, 32 should be enough.
Mikael Nordfeldth [Tue, 17 Sep 2013 23:21:53 +0000 (01:21 +0200)]
8 chars was too little, 32 should be enough.

10 years agoGNUSOCIAL is the new defined indicator
Mikael Nordfeldth [Tue, 17 Sep 2013 22:35:49 +0000 (00:35 +0200)]
GNUSOCIAL is the new defined indicator

STATUSNET is still there for compatibility, so we don't have to change
all scripts at once yet...

10 years agominor fixes and cleanups in the scripts directory
Mikael Nordfeldth [Tue, 17 Sep 2013 22:25:11 +0000 (00:25 +0200)]
minor fixes and cleanups in the scripts directory

10 years agoPHP 5.3 dependency declared in INSTALL file
Mikael Nordfeldth [Tue, 17 Sep 2013 22:10:44 +0000 (00:10 +0200)]
PHP 5.3 dependency declared in INSTALL file

10 years agoBad call to joinAdd in Profile.php
Mikael Nordfeldth [Mon, 16 Sep 2013 20:36:44 +0000 (22:36 +0200)]
Bad call to joinAdd in Profile.php

10 years agoAutocomplete migrated to jquery-ui autocomplete
Mikael Nordfeldth [Mon, 16 Sep 2013 20:10:08 +0000 (22:10 +0200)]
Autocomplete migrated to jquery-ui autocomplete

No longer bundled with the library (as jquery-ui is bundled with the
main software, including the autocomplete part).

Rewrites had to be made to migrate, as several API things had changed
when jquery-ui took over the library.

Currently (like before, right?) this only autocompletes in the end of
the current textarea. So you can't jump back in the middle of a text
and autocomplete a user or group. This is a serious deficiency, though
not a regression.

10 years agoGravatar pretty much equals disregarding privacy
Mikael Nordfeldth [Mon, 16 Sep 2013 19:49:32 +0000 (21:49 +0200)]
Gravatar pretty much equals disregarding privacy

Not only that one can often correlate email address md5 hash sums, but
the "functionality" depends on a bunch of external calls.

10 years agoEvents on user registrations now strictly typed
Mikael Nordfeldth [Sat, 14 Sep 2013 16:36:35 +0000 (18:36 +0200)]
Events on user registrations now strictly typed

10 years agoEvent::handle only takes array $args
Mikael Nordfeldth [Sat, 14 Sep 2013 16:32:52 +0000 (18:32 +0200)]
Event::handle only takes array $args

This is because it calls call_user_func_array with that exact $args argument.

10 years agoAdded new config for lighttpd.conf that worked on my 1.28 setup.
Brian Tegtmeier [Sat, 24 Dec 2011 00:28:31 +0000 (19:28 -0500)]
Added new config for lighttpd.conf that worked on my 1.28 setup.

Modified and additionally commented by MMN-o

10 years agoMinified javascripts are evil! Human readable source, please!
Mikael Nordfeldth [Sat, 14 Sep 2013 11:41:49 +0000 (13:41 +0200)]
Minified javascripts are evil! Human readable source, please!

10 years agojquery 2.x update related fix (.die no longer defined)
Mikael Nordfeldth [Sat, 14 Sep 2013 11:41:04 +0000 (13:41 +0200)]
jquery 2.x update related fix (.die no longer defined)

10 years agoFixed regression from jquery-cookie update
Mikael Nordfeldth [Sat, 14 Sep 2013 11:38:50 +0000 (13:38 +0200)]
Fixed regression from jquery-cookie update

cookieValue was matched against null, not undefined.

10 years agoupdated and moved jquery-cookie
Mikael Nordfeldth [Sat, 14 Sep 2013 10:58:03 +0000 (12:58 +0200)]
updated and moved jquery-cookie

Also added to minification Makefile in js/ as it was not delivered from
upstream as .min.js

10 years agoupdated and moved jquery-jcrop (no longer .min.js)
Mikael Nordfeldth [Sat, 14 Sep 2013 10:31:53 +0000 (12:31 +0200)]
updated and moved jquery-jcrop (no longer .min.js)

This won't run properly if other scripts stop javascript execution before
it's time to crop (such as in the Bookmark plugin, which when writing this
hasn't been migrated to Jquery 2.x - so it stops on a '.die' call).

Some images were cleaned up from the theme/base/images/illustrations too.

10 years agoupdated jquery-infieldlabel from 0.1.2 to 0.2.1
Mikael Nordfeldth [Sat, 14 Sep 2013 10:26:21 +0000 (12:26 +0200)]
updated jquery-infieldlabel from 0.1.2 to 0.2.1

Source: https://github.com/instanceofme/jquery-infieldlabels/

10 years agoRemoved jOverlay as it's outdated and not referenced
Mikael Nordfeldth [Thu, 12 Sep 2013 13:57:32 +0000 (15:57 +0200)]
Removed jOverlay as it's outdated and not referenced

10 years agojquery form updated and moved to js/extlib
Mikael Nordfeldth [Thu, 12 Sep 2013 13:53:14 +0000 (15:53 +0200)]
jquery form updated and moved to js/extlib

10 years agojquery-ui updated and moved to js/extlib
Mikael Nordfeldth [Thu, 12 Sep 2013 13:48:28 +0000 (15:48 +0200)]
jquery-ui updated and moved to js/extlib

It seems we don't need all the development files. Though it feels a bit
evil not to keep them. Then again we didn't have the whole dev-tree there.

Really we should maybe use git submodules for this?

I also made sure that if we don't have minify enabled, a non-minified
version of jquery-ui is loaded, as minification is the most evil of all.
Bad as hell to debug, and anyone visiting the site should be allowed to
view all scripts that are run in an overseeable manner.

10 years agojquery javascript was moved to js/extlib
Mikael Nordfeldth [Tue, 10 Sep 2013 17:02:55 +0000 (19:02 +0200)]
jquery javascript was moved to js/extlib

10 years agoChanging js .live calls to .on for jquery 2.x
Mikael Nordfeldth [Tue, 10 Sep 2013 16:52:09 +0000 (18:52 +0200)]
Changing js .live calls to .on for jquery 2.x

10 years agofarbtastic removed along with userdesign stuff
Mikael Nordfeldth [Tue, 10 Sep 2013 13:18:18 +0000 (15:18 +0200)]
farbtastic removed along with userdesign stuff

...I couldn't find anywhere this was being used in current code...

10 years agoFixed regression from util.js updates + syntax cleanup
Mikael Nordfeldth [Tue, 10 Sep 2013 13:14:42 +0000 (15:14 +0200)]
Fixed regression from util.js updates + syntax cleanup

We introduced a regression in 6fa9062d28713e81d508854fa232ce65a8a59319
based on syntax error, as a curly brace ({) was lost. This is now fixed.

10 years agoUpdated jquery extlib to v2.0.3
Mikael Nordfeldth [Tue, 10 Sep 2013 11:56:51 +0000 (13:56 +0200)]
Updated jquery extlib to v2.0.3

Includes pre-minimized version from code.jquery.com

10 years agojson2 extlib updated to 2013-05-26 version
Mikael Nordfeldth [Tue, 10 Sep 2013 11:43:50 +0000 (13:43 +0200)]
json2 extlib updated to 2013-05-26 version

Includes minification and Makefile update

10 years agoShortcut for (document).ready(). Changed .attr() to .prop() for checked and disabled.
Brian Tegtmeier [Fri, 23 Dec 2011 19:56:55 +0000 (14:56 -0500)]
Shortcut for (document).ready(). Changed .attr() to .prop() for checked and disabled.

10 years agoChanged .attr() to .prop() for checked and disabled. Removed "style" removal which...
Brian Tegtmeier [Fri, 23 Dec 2011 19:54:58 +0000 (14:54 -0500)]
Changed .attr() to .prop() for checked and disabled. Removed "style" removal which I assume was tied to opacity setting on line 9. Replaced "style" setting via attr() on line 12 with css().

10 years agoChanged bind() and live() to on(). Changed .attr() to .prop() for checked and disable...
Brian Tegtmeier [Sat, 24 Dec 2011 00:24:47 +0000 (19:24 -0500)]
Changed bind() and live() to on(). Changed .attr() to .prop() for checked and disabled. Shortcut for (document).ready(). This is the first attempt to convert live() elements to on() according to http://api.jquery.com/live/.

10 years agoChanged bind() and unbind() to on() and off(). Shortcut for (document).ready().
Brian Tegtmeier [Sat, 24 Dec 2011 00:13:44 +0000 (19:13 -0500)]
Changed bind() and unbind() to on() and off(). Shortcut for (document).ready().

10 years agoAdd 'twitter:title' meta tag support.
Jean Baptiste Favre [Tue, 18 Sep 2012 14:20:10 +0000 (16:20 +0200)]
Add 'twitter:title' meta tag support.

10 years agoTwitter cards implementation. Currently only supports 'photo' cards.
Jean Baptiste Favre [Sun, 16 Sep 2012 17:27:31 +0000 (19:27 +0200)]
Twitter cards implementation. Currently only supports 'photo' cards.

10 years agoPutting in functionality so that sites with the "Sometimes" SSL setting allow for...
Emily O'Leary [Mon, 25 Mar 2013 05:52:10 +0000 (01:52 -0400)]
Putting in functionality so that sites with the "Sometimes" SSL setting allow for users with plugins such as HTTPSEVERYWHERE who wish to use HTTPS to do so without having errors pop up. Specifically this references this issue: http://status.net/open-source/issues/3855#comment-48988.

(Port detection test removed by MMN-o. Also switched order on the test for
isHTTPS/SensitiveAction.)

10 years agoDeclaring some more static functions properly
Mikael Nordfeldth [Mon, 9 Sep 2013 21:08:43 +0000 (23:08 +0200)]
Declaring some more static functions properly

As a bonus I added type declaration on Profile_block::exists and
Subscription::exists respectively.

10 years agoRemoving unnecessary require_once lines (autoload!)
Mikael Nordfeldth [Mon, 9 Sep 2013 21:05:33 +0000 (23:05 +0200)]
Removing unnecessary require_once lines (autoload!)

10 years agoTidying up getUser calls to profiles and some events
Mikael Nordfeldth [Mon, 9 Sep 2013 19:35:16 +0000 (21:35 +0200)]
Tidying up getUser calls to profiles and some events

getUser calls are much more strict, and one place where this was found was
in the (un)subscribe start/end event handlers, which resulted in making the
Subscription class a bit stricter, regarding ::start and ::cancel at least.
Several minor fixes in many files were made due to this.

This does NOT touch the Foreign_link function, which should also have a more
strict getUser call. That is a future project.

10 years agoUsing a bit more of $this->scoped (Action parent class)
Mikael Nordfeldth [Mon, 9 Sep 2013 18:45:20 +0000 (20:45 +0200)]
Using a bit more of $this->scoped (Action parent class)

$this->scoped is the currently active profile, which is intended
to replace the $user object in the long run...

10 years agoNewapplicationAction converted to FormAction
Mikael Nordfeldth [Mon, 2 Sep 2013 10:13:46 +0000 (12:13 +0200)]
NewapplicationAction converted to FormAction

Cutting down on a bunch of redundant code. We're reusing a lot of stuff
from FormAction and Action now instead of having copies of code all over.

10 years agoneedLogin renamed checkLogin and made a property
Mikael Nordfeldth [Mon, 2 Sep 2013 09:58:47 +0000 (11:58 +0200)]
needLogin renamed checkLogin and made a property

Action extended classes now can set 'needLogin' as a protected property,
which is defaulted to 'false'. However, FormAction defaults this to 'true'
because most of the form actions will require a current login to be valid.

NewgroupAction, NewmessageAction, NewnoticeAction are all affected by this
commit and in the future we will migrate each potential formaction to the
proper class parent tree. :)

10 years agonewmessage (and Message class) fixed for FormAction
Mikael Nordfeldth [Mon, 2 Sep 2013 08:59:02 +0000 (10:59 +0200)]
newmessage (and Message class) fixed for FormAction

Also added a needLogin function to the Action class, which will do
redirect to login page with proper returnto setting.

10 years agoIMPORTANT: parent::handlePost() in NewnoticeAction
Mikael Nordfeldth [Sun, 1 Sep 2013 19:45:10 +0000 (21:45 +0200)]
IMPORTANT: parent::handlePost() in NewnoticeAction

otherwise we don't do csrf checking etc...

10 years agoNewnoticeAction converted to extend FormAction
Mikael Nordfeldth [Sun, 1 Sep 2013 18:56:35 +0000 (20:56 +0200)]
NewnoticeAction converted to extend FormAction

There are still several improvements which can be made, such as not
having an entirely separate setup of ajax form functions. Instead
those should be implemented in FormAction. But at least now we got
rid of the redundant code use in prepare/handle.

10 years agoConforming to code layout
Mikael Nordfeldth [Sun, 1 Sep 2013 18:52:11 +0000 (20:52 +0200)]
Conforming to code layout

10 years agoProper definition of $args array in NewgroupAction->prepare
Mikael Nordfeldth [Sun, 1 Sep 2013 17:28:57 +0000 (19:28 +0200)]
Proper definition of $args array in NewgroupAction->prepare

Also, there is no need to do 'return' after throwing a ClientError
Exception. And we'll use the Action->clientError for logging benefits
until the error handling is properly done all the way to backend.

10 years agoNewgroupAction converted to extend FormAction
Mikael Nordfeldth [Sat, 31 Aug 2013 13:03:59 +0000 (15:03 +0200)]
NewgroupAction converted to extend FormAction

Had to change Action function 'prepare' to 'protected', as you can't
(of course) protect something that's been public in a parent class. The
other way around seems fine for PHP... Eventually all actions will have
protected 'prepare' (use execute/run)

A feature of the previously fixed initialization of Action classes, is
that we now have $this->scoped which is the current profile in use. As
of now that is always a local User, except the corresponding Profile
object.

Also, instead of calling 'showForm' everywhere, in case of an error we
just throw an exception of some sort and pass the message along there.

I've also introduced in FormAction the 'showInstructions' function in
order to get a unified instructions/info/error display method.

TODO: Improve info/error message handling, and what/when/where to show.