]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
10 years agoQvitter API changes (thanks hannes2peer)
Mikael Nordfeldth [Sun, 6 Oct 2013 19:30:29 +0000 (21:30 +0200)]
Qvitter API changes (thanks hannes2peer)

I implemented changes from quitter.se's new API that their front-end qvitter
uses, https://github.com/hannesmannerheim/qvitter/blob/master/api-changes-1.1.1/CHANGES

However I left out the URL shortening commens, since I believe whatever behaviour
they experienced that caused them to implement this was a bug (or many) and should
be fixed in their proper areas and that shortening should not be entirely left
out in API calls.

10 years ago60 chars was too little, 100 chars seems better. For me.
Mikael Nordfeldth [Sun, 6 Oct 2013 18:28:07 +0000 (20:28 +0200)]
60 chars was too little, 100 chars seems better. For me.

10 years agopkeyGet unfortunately returns null (should throw NoResultException) on empty result
Mikael Nordfeldth [Sun, 6 Oct 2013 18:03:56 +0000 (20:03 +0200)]
pkeyGet unfortunately returns null (should throw NoResultException) on empty result

10 years agoMissed an exclamation mark. Still doesn't linkify groups?
Mikael Nordfeldth [Sun, 6 Oct 2013 15:26:55 +0000 (17:26 +0200)]
Missed an exclamation mark. Still doesn't linkify groups?

10 years agolistFind throws NoResultException on no results
Mikael Nordfeldth [Sun, 6 Oct 2013 14:37:51 +0000 (16:37 +0200)]
listFind throws NoResultException on no results

10 years agoMoved Avatar retrieval into Avatar class
Mikael Nordfeldth [Sun, 6 Oct 2013 13:54:06 +0000 (15:54 +0200)]
Moved Avatar retrieval into Avatar class

Backwards compatible functions are still in Profile class.

10 years agoAdded Profile_prefs class for profile preferences
Mikael Nordfeldth [Sun, 6 Oct 2013 11:40:53 +0000 (13:40 +0200)]
Added Profile_prefs class for profile preferences

Profile_prefs aims to consolidate all the profile preferences into a
single table. Otherwise we end up with a bajillion *_prefs classes, like
User_urlshortener_prefs, or new fields in existing User/Profile classes,
like 'urlshorteningservice', 'homepage', 'phone_number', 'pet_name' etc.

Eventually we should migrate as many user-settable preferences as we can
into this system.

The data in Profile_prefs is organized by:
    * profile_id    Identify the current Profile.
    * namespace     Which plugin/section the preference is for.
    * topic         Preference name (like 'homepage')
    * data          Preference data (like 'https://gnu.org/')

The names 'topic' and 'data' are because 'key' and 'value' may be rather
ambigous when dealing with our DB_DataObject classes etc.

10 years agoMoved shareLocation preference check to Profile class
Mikael Nordfeldth [Sun, 6 Oct 2013 11:38:09 +0000 (13:38 +0200)]
Moved shareLocation preference check to Profile class

10 years agoOAuth related syntax fixes, nothing big
Mikael Nordfeldth [Sun, 6 Oct 2013 10:40:58 +0000 (12:40 +0200)]
OAuth related syntax fixes, nothing big

Making better use of class autoloading too.

10 years agoI missed a preg_replace with /e
Mikael Nordfeldth [Sun, 6 Oct 2013 10:37:55 +0000 (12:37 +0200)]
I missed a preg_replace with /e

10 years agoTyping and static declaration in PoCo class
Mikael Nordfeldth [Sun, 6 Oct 2013 01:48:41 +0000 (03:48 +0200)]
Typing and static declaration in PoCo class

10 years agoSome PHP strict warning fixes
Mikael Nordfeldth [Sun, 6 Oct 2013 01:37:12 +0000 (03:37 +0200)]
Some PHP strict warning fixes

10 years agoPCRE modifier /e is deprecated in favour of preg_replace_callback()
Mikael Nordfeldth [Sun, 6 Oct 2013 01:27:16 +0000 (03:27 +0200)]
PCRE modifier /e is deprecated in favour of preg_replace_callback()

10 years agofillAvatars would avoid the *ProfileGetAvatar events
Mikael Nordfeldth [Sat, 5 Oct 2013 23:56:27 +0000 (01:56 +0200)]
fillAvatars would avoid the *ProfileGetAvatar events

10 years agoGroup logos would not be fetched
Mikael Nordfeldth [Sat, 5 Oct 2013 23:30:44 +0000 (01:30 +0200)]
Group logos would not be fetched

update_ostatus_profiles.php did this correctly, but not Ostatus_profile.php

10 years agoLOG_WARNING, not LOG_WARN
Mikael Nordfeldth [Sat, 5 Oct 2013 23:15:21 +0000 (01:15 +0200)]
LOG_WARNING, not LOG_WARN

10 years agoMediaFile code improvements, preparing to implement multi-attachments
Mikael Nordfeldth [Sat, 5 Oct 2013 16:43:41 +0000 (18:43 +0200)]
MediaFile code improvements, preparing to implement multi-attachments

Maybe in the future we can use this for anonymous file uploads too?
With some kind of anonymous/pseudonymous profile. That'd be neat.

10 years agoOAuth extlib updated and Twitter comments removed
Mikael Nordfeldth [Sat, 5 Oct 2013 13:59:43 +0000 (15:59 +0200)]
OAuth extlib updated and Twitter comments removed

Source: http://oauth.googlecode.com/svn/code/php/OAuth.php

Should we use PECL OAuth?

10 years agoForgot to clean some debug logging
Mikael Nordfeldth [Sat, 5 Oct 2013 12:33:02 +0000 (14:33 +0200)]
Forgot to clean some debug logging

10 years agoUpdating external libraries for net access
Mikael Nordfeldth [Sat, 5 Oct 2013 12:29:02 +0000 (14:29 +0200)]
Updating external libraries for net access

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