]>
git.mxchange.org Git - quix0rs-gnu-social.git/log
Mikael Nordfeldth [Sun, 23 Feb 2014 13:57:12 +0000 (14:57 +0100)]
Remove callback sneakery by StatusNet
Mikael Nordfeldth [Sun, 23 Feb 2014 13:47:41 +0000 (14:47 +0100)]
slightly less confusing inline if
Mikael Nordfeldth [Sun, 12 Jan 2014 21:46:50 +0000 (22:46 +0100)]
Use exceptions for Notice::getByUri
..jeez, a long time since I commited. Three in a row to get this right. Sorry :)
Mikael Nordfeldth [Sun, 12 Jan 2014 21:41:30 +0000 (22:41 +0100)]
Notice::getByUri is of course static
Mikael Nordfeldth [Sun, 12 Jan 2014 21:37:41 +0000 (22:37 +0100)]
getByUri added to Notice for future use
Mikael Nordfeldth [Sat, 4 Jan 2014 20:27:28 +0000 (21:27 +0100)]
Merge commit 'refs/merge-requests/6' of git://gitorious.org/statusnet/gnu-social into merge-requests/6
Mikael Nordfeldth [Wed, 1 Jan 2014 19:30:57 +0000 (20:30 +0100)]
instanceof checks for better typing
Mikael Nordfeldth [Wed, 1 Jan 2014 19:30:30 +0000 (20:30 +0100)]
updating prepare and handle
Mikael Nordfeldth [Wed, 1 Jan 2014 19:09:11 +0000 (20:09 +0100)]
Previous edit made translation notes incompatible
Mikael Nordfeldth [Wed, 1 Jan 2014 18:44:02 +0000 (19:44 +0100)]
apparently not only regex 'https?' urls are sent
Mikael Nordfeldth [Wed, 1 Jan 2014 18:43:31 +0000 (19:43 +0100)]
better comment for PuSH <0.4 hack
root [Tue, 31 Dec 2013 23:56:56 +0000 (23:56 +0000)]
check local/plugins before plugins in Plugin::onAutoload
Mikael Nordfeldth [Wed, 4 Dec 2013 12:43:04 +0000 (13:43 +0100)]
Twitter search server has changed domain name (thanks mrvdb)
Mikael Nordfeldth [Mon, 2 Dec 2013 12:51:55 +0000 (13:51 +0100)]
Queues should be enabled by default (thanks postblue)
Mikael Nordfeldth [Wed, 20 Nov 2013 20:46:16 +0000 (21:46 +0100)]
OpportunisticQM can't run as subsystem qm
Mikael Nordfeldth [Wed, 20 Nov 2013 20:20:42 +0000 (21:20 +0100)]
Cron split into Cronish and OpportunisticQM
/main/cron changed to /main/runqueue
The key-required functionality is not throughly tested yet.
Mikael Nordfeldth [Tue, 19 Nov 2013 13:13:33 +0000 (14:13 +0100)]
Cron plugin added and now default queue handler
Generally the Cron plugin will run if there's still execution time for
1 second since starting the Action processing. If you want to change
this (such as disabling, 0 seconds, or maybe running bigger chunks,
for like 4 seconds) you can do this, where 'n' is time in seconds.
addPlugin('Cron', array('secs_per_action', n));
Add 'rel_to_pageload'=>false to the array if you want to run the queue
for a certain amount of seconds _despite_ maybe already having run that
long in the previous parts of Action processing.
Perhaps you want to run the cron script remotely, using a machine capable
of background processing (or locally, to avoid running daemon processes),
simply do an HTTP GET request to the route /main/cron of your GNU social.
Setting secs_per_action to 0 in the plugin config will imply that you run
all your queue handling by calling /main/cron (which runs as long as it can).
/main/cron will output "0" if it has finished processing, "1" if it should
be called again to complete processing (because it ran out of time due to
PHP's max_execution_time INI setting).
The Cron plugin also runs events as close to hourly, daily and weekly
as you get, based on the opportunistic method of running whenever a user
visits the site. This means of course that the cron events should be as
fast as possible, not only to avoid delaying page load for users but
also to minimize the risk of running into PHP's max_execution_time. One
suggestion is to only use the events to add new queue items for later processing.
These events are called CronHourly, CronDaily, CronWeekly - however there
is no guarantee that all events will execute, so some kind of failsafe,
transaction-ish method must be implemented in the future.
Mikael Nordfeldth [Tue, 19 Nov 2013 13:02:53 +0000 (14:02 +0100)]
We haven't added the cron plugin yet
Mikael Nordfeldth [Tue, 19 Nov 2013 12:50:49 +0000 (13:50 +0100)]
Plugins should be initialized with an empty array, not null
Mikael Nordfeldth [Fri, 15 Nov 2013 12:43:57 +0000 (13:43 +0100)]
Attention structure has changed recently
Mikael Nordfeldth [Tue, 19 Nov 2013 01:39:43 +0000 (02:39 +0100)]
Don't miss integer 0 values from find()
Mikael Nordfeldth [Mon, 18 Nov 2013 19:43:00 +0000 (20:43 +0100)]
Comment and typing improvements
To make the StatusNet::addPlugin() accept only arrays,
the lib/default.php had to be changed because all plugins
had 'null' as default value instead of an array.
Mikael Nordfeldth [Mon, 18 Nov 2013 19:04:00 +0000 (20:04 +0100)]
Don't allow double plugin loading
Mikael Nordfeldth [Mon, 18 Nov 2013 18:50:46 +0000 (19:50 +0100)]
GTalk shouldn't be trusted to comply with XMPP nowadays
Mikael Nordfeldth [Fri, 15 Nov 2013 12:43:41 +0000 (13:43 +0100)]
GNUSOCIAL, not STATUSNET. Too many changes to be backwards compatible
Mikael Nordfeldth [Sun, 17 Nov 2013 23:50:12 +0000 (00:50 +0100)]
Don't disable queuedaemons before Cron stuff is done
Mikael Nordfeldth [Wed, 13 Nov 2013 17:15:21 +0000 (18:15 +0100)]
Minor queue fixes, probably not very important. Preparing for cron
Mikael Nordfeldth [Mon, 11 Nov 2013 12:18:23 +0000 (13:18 +0100)]
Slightly better indication that notice section shows incomplete text
Must still be improved somehow.
Mikael Nordfeldth [Sun, 10 Nov 2013 23:47:09 +0000 (00:47 +0100)]
Section notices should not take up too much space.
No configuration options for the max amount of characters yet.
Mikael Nordfeldth [Sun, 10 Nov 2013 23:45:30 +0000 (00:45 +0100)]
curly braces to pick a character in string is not recommended
Mikael Nordfeldth [Sun, 10 Nov 2013 13:33:45 +0000 (14:33 +0100)]
Slight cleanup in typing and syntax of File and File_* classes
Mikael Nordfeldth [Sat, 9 Nov 2013 00:18:44 +0000 (01:18 +0100)]
Inbox class a bit more consistent in argument order and type
Mikael Nordfeldth [Sat, 9 Nov 2013 00:10:47 +0000 (01:10 +0100)]
Notice_inbox no longer used (and should've already been migrated for anyone using StatusNet 1.1.x)
Mikael Nordfeldth [Fri, 8 Nov 2013 23:49:00 +0000 (00:49 +0100)]
WebFingerResource for profiles now WebFingerResource_Profile
Mikael Nordfeldth [Thu, 7 Nov 2013 07:20:41 +0000 (08:20 +0100)]
Group mentions got the wrong class. Now lists get their own too!
Mikael Nordfeldth [Wed, 6 Nov 2013 11:46:59 +0000 (12:46 +0100)]
Remote StatusNet sites would throw 400 if no hub.verify_token
Mikael Nordfeldth [Mon, 4 Nov 2013 16:38:40 +0000 (17:38 +0100)]
Call self:: instead of Memcached_DataObject
Mikael Nordfeldth [Mon, 4 Nov 2013 16:38:09 +0000 (17:38 +0100)]
Cache key lead is 'gnusocial' now (restart daemons!)
Mikael Nordfeldth [Mon, 4 Nov 2013 15:57:30 +0000 (16:57 +0100)]
No pagination when no groups shown... :)
Mikael Nordfeldth [Sat, 2 Nov 2013 19:16:35 +0000 (20:16 +0100)]
Profile->getGroupCount() should be used for groupcounts
This was found in the PHP error log as:
"Trying to get property of non-object in %HTDOCS%/lib/profileaction.php on line 270"
Mikael Nordfeldth [Sat, 2 Nov 2013 19:02:28 +0000 (20:02 +0100)]
PuSH 0.4: No outgoing 'sync' verifications. Feed renewal script. No auto-renewal.
Among other things (such as permanent subscriptions), Pubsubhubbub 0.4
removed the "sync" verification method. This means that any incoming
PuSH subscription requests that follow the 0.4 spec won't really
_require_that we handle it as a background process, but if we were to
try direct verification of the subscription - and fail - there's no way
we could pick up the ball again. So _essentially_ we require background
processing with retries.
This means we must implement something like the "poorman cron" or
similar, so background processing can be handled
on-demand/on-site-visit. This is how Friendica, Drupal etc. handles it
and is necessary for environments where we can't run separate queue
daemons.
When the poorman-cron-ish thing is implemented, auto-renewal will work
for all users.
PuSH 0.4 spec:
https://pubsubhubbub.googlecode.com/git/pubsubhubbub-core-0.4.html
More on PuSH 0.4 release (incl. breaking changes):
https://groups.google.com/forum/#!msg/pubsubhubbub/7RPlYMds4RI/2mIHQTdV3aoJ
Mikael Nordfeldth [Sat, 2 Nov 2013 17:48:28 +0000 (18:48 +0100)]
We can only handle Memcached_DataObject in NoResultException
Mikael Nordfeldth [Sat, 2 Nov 2013 16:42:32 +0000 (17:42 +0100)]
We don't do local_push_bypass
Mikael Nordfeldth [Sat, 2 Nov 2013 16:28:11 +0000 (17:28 +0100)]
Minor typing stuff and syntax fixes
Mikael Nordfeldth [Sat, 2 Nov 2013 16:27:50 +0000 (17:27 +0100)]
Implement a User_group fetching function for Local_group
Mikael Nordfeldth [Sat, 2 Nov 2013 13:30:29 +0000 (14:30 +0100)]
Less raw SQL in User_group
Mikael Nordfeldth [Sat, 2 Nov 2013 12:05:08 +0000 (13:05 +0100)]
Minor PHP stylistic features and typing stuff
Mikael Nordfeldth [Fri, 1 Nov 2013 23:35:59 +0000 (00:35 +0100)]
There are no LaconicaScripts left
Mikael Nordfeldth [Fri, 1 Nov 2013 15:54:59 +0000 (16:54 +0100)]
Notice metadata for WebFinger. Not sure if implemented properly.
This is more of a proof of concept and will likely not stay in exactly
this form. We should reasonably deliver the entire notice upon webfinger
querying.
Mikael Nordfeldth [Fri, 1 Nov 2013 16:00:12 +0000 (17:00 +0100)]
Salmon only has one "rel" value now, so start deprecating
Mikael Nordfeldth [Fri, 1 Nov 2013 13:04:40 +0000 (14:04 +0100)]
Minor labeling things for StatusNet to GNU social migration
Mikael Nordfeldth [Fri, 1 Nov 2013 12:57:31 +0000 (13:57 +0100)]
What was that NewMenu plugin doing there anyway?
Mikael Nordfeldth [Fri, 1 Nov 2013 12:51:41 +0000 (13:51 +0100)]
Using GNUSOCIAL_VERSION instead of STATUSNET_VERSION
Mikael Nordfeldth [Fri, 1 Nov 2013 12:28:52 +0000 (13:28 +0100)]
User agents and generators changed to GNU social
Mikael Nordfeldth [Fri, 1 Nov 2013 12:20:23 +0000 (13:20 +0100)]
Better typing and minor fixes to OStatus related stuff
Mikael Nordfeldth [Wed, 30 Oct 2013 15:28:59 +0000 (16:28 +0100)]
Version name strings updated, StatusNet only retained for copyright
Mikael Nordfeldth [Wed, 30 Oct 2013 14:04:54 +0000 (15:04 +0100)]
OStatus remote address example now more generic
Mikael Nordfeldth [Wed, 30 Oct 2013 13:56:27 +0000 (14:56 +0100)]
Forgot to catch no-parent-exception
Unfortunately not a specific Exception right now, but we're getting to that.
Mikael Nordfeldth [Wed, 30 Oct 2013 13:43:40 +0000 (14:43 +0100)]
Getting a profile from URI would throw exceptions on remote URL lookup failures
Mikael Nordfeldth [Wed, 30 Oct 2013 13:17:54 +0000 (14:17 +0100)]
Use schemaDef when checking database structure
Mikael Nordfeldth [Wed, 30 Oct 2013 13:14:02 +0000 (14:14 +0100)]
Minor Ostatus_profile class reference fixes
Mikael Nordfeldth [Wed, 30 Oct 2013 12:05:04 +0000 (13:05 +0100)]
getStreamName will now return nick/fullname based on current user's preferred representation
Mikael Nordfeldth [Wed, 30 Oct 2013 11:56:17 +0000 (12:56 +0100)]
NoticeListItem attentions showed double for User_group
...because they each have their own Profile now! Whiie!
Mikael Nordfeldth [Wed, 30 Oct 2013 11:25:01 +0000 (12:25 +0100)]
Use addPlugin! (esp. XMPP folks should do this)
If you're using XMPP by setting $config['xmpp'][*] then you should do:
addPlugin('Xmpp', $config['xmpp']);
because setting it directly in $config[''] won't do anything.
Also, default resource for XMPP is now 'gnusocial'. If you want something
more random, set it in your addPlugin config array.
Mikael Nordfeldth [Wed, 30 Oct 2013 11:21:34 +0000 (12:21 +0100)]
LoginAction somewhat converted to FormAction
Mikael Nordfeldth [Tue, 29 Oct 2013 14:06:02 +0000 (15:06 +0100)]
mentioned was an array, not a single object
Mikael Nordfeldth [Tue, 29 Oct 2013 13:09:00 +0000 (14:09 +0100)]
File oEmbed lookup failure is not as severe as LOG_ERR
Mikael Nordfeldth [Tue, 29 Oct 2013 12:42:21 +0000 (13:42 +0100)]
User_group->permalink() is a function, not a variable.
Mikael Nordfeldth [Tue, 29 Oct 2013 10:27:26 +0000 (11:27 +0100)]
Group discovery from text functions polished
Also removed the entirely unused saveGroups function.
Now avoiding multiGet and using listFind in Profile->getGroups()
so we don't have to deal with ArrayWrapper.
Mikael Nordfeldth [Tue, 29 Oct 2013 09:26:46 +0000 (10:26 +0100)]
Protected function prepare with array $args defaulting to array()
Mikael Nordfeldth [Tue, 29 Oct 2013 09:20:57 +0000 (10:20 +0100)]
function delete in dataobjects now don't break strict syntax
Mikael Nordfeldth [Mon, 28 Oct 2013 21:21:14 +0000 (22:21 +0100)]
Reworked the ActivityContext->attention structure
Removing Evan's obscure attentionType solution and directly using the attention array
Mikael Nordfeldth [Mon, 28 Oct 2013 21:18:00 +0000 (22:18 +0100)]
More OOP-ish tests using instanceof
Mikael Nordfeldth [Mon, 28 Oct 2013 18:39:15 +0000 (19:39 +0100)]
PEAR lib updated to 1.9.4 (seems only installation stuff changed)
Mikael Nordfeldth [Mon, 28 Oct 2013 18:36:05 +0000 (19:36 +0100)]
Memcached_DataObject extensions got their update functions more consistent
Mikael Nordfeldth [Mon, 28 Oct 2013 18:03:09 +0000 (19:03 +0100)]
Some getStaticProperty calls to PEAR globalized
Mikael Nordfeldth [Mon, 28 Oct 2013 17:28:53 +0000 (18:28 +0100)]
acct uri should be caseinsensitive (so let's do our reconstruction in lowercase)
Mikael Nordfeldth [Mon, 28 Oct 2013 17:26:00 +0000 (18:26 +0100)]
Event handler StartGetProfileAcctUri for WebFinger
Mikael Nordfeldth [Mon, 28 Oct 2013 17:01:39 +0000 (18:01 +0100)]
getAcctUri function added with related exception
Used in ActivityObject for Atom Title generation.
New events:
* StartGetProfileAcctUri
* EndGetProfileAcctUri
Mikael Nordfeldth [Mon, 28 Oct 2013 16:54:34 +0000 (17:54 +0100)]
Make Atom titles a bit more verbose
Mikael Nordfeldth [Mon, 28 Oct 2013 16:24:13 +0000 (17:24 +0100)]
Use getParent instead of manual reply_to lookup
Mikael Nordfeldth [Mon, 28 Oct 2013 15:22:09 +0000 (16:22 +0100)]
Removed legacy OMB. Use OStatus for remote profiles.
Mikael Nordfeldth [Fri, 25 Oct 2013 16:15:34 +0000 (18:15 +0200)]
Enable json-specified objects in queue_item frames
Mikael Nordfeldth [Sun, 27 Oct 2013 10:27:12 +0000 (11:27 +0100)]
defines changed to GNU social names instead of StatusNet
Mikael Nordfeldth [Fri, 25 Oct 2013 11:17:29 +0000 (13:17 +0200)]
ForceGroup and some qvitter API stuff still used staticGet
Mikael Nordfeldth [Wed, 23 Oct 2013 10:24:20 +0000 (12:24 +0200)]
Notice class local cache fixes
Mikael Nordfeldth [Wed, 23 Oct 2013 10:02:15 +0000 (12:02 +0200)]
Call memcache() as a static object (it's a static class)
Mikael Nordfeldth [Tue, 22 Oct 2013 18:35:03 +0000 (20:35 +0200)]
Moved jbfavre's Twitter card support to Twitter plugin
It was causing problems with an undefined TWITTER_SERVICE constant.
Mikael Nordfeldth [Tue, 22 Oct 2013 16:53:26 +0000 (18:53 +0200)]
Don't disconnect a DB_Error, instead log for better understanding.
Mikael Nordfeldth [Tue, 22 Oct 2013 15:43:17 +0000 (17:43 +0200)]
No need to know what DBQueueManager got if not debugging
Mikael Nordfeldth [Tue, 22 Oct 2013 15:32:06 +0000 (17:32 +0200)]
Geonames now not a default plugin
In the name of privacy, let's not by default call a bunch of third
party services with our (users') geographical position.
Mikael Nordfeldth [Tue, 22 Oct 2013 13:37:01 +0000 (15:37 +0200)]
Notice->getParent function fixes
NoResultException was the wrong choice in this case, because it was
not a DB_DataObject instance that performed the search, but a static
call to the Notice class.
Mikael Nordfeldth [Tue, 22 Oct 2013 13:34:22 +0000 (15:34 +0200)]
Daisychaining bug with exceptions in PHP
Mikael Nordfeldth [Mon, 21 Oct 2013 20:26:37 +0000 (22:26 +0200)]
Prepare the RepeatAction for modernisation (more OOP)
Mikael Nordfeldth [Mon, 21 Oct 2013 21:06:34 +0000 (23:06 +0200)]
Ostatus_profile->processShare now backwards compatible against federating StatusNet nodes
StatusNet was improperly defining the id (URI) of the shared object as a
TagURI, while it should've really been the object's URI of course.
Mikael Nordfeldth [Mon, 21 Oct 2013 20:28:17 +0000 (22:28 +0200)]
SHARE activities would not be imported from federated instances for local notices
"[...] posts _local_ users (like you) make won't get data about "repeated by"
from federated users"
This was because the ActivityObject would processShare where the shared object
has a _local_ 'actor' URI. Ostatus_profile would complain this meant that a
"Local user cannot be referenced as remote.".
So we see if the shared activity object's id (URI) is in our Notice table, so
we don't have to processActivity - and can skip ensureActivityObjectProfile.
Mikael Nordfeldth [Mon, 21 Oct 2013 20:27:12 +0000 (22:27 +0200)]
Revert "Better ID for notice activity"
This reverts commit
8cc4660bd94a6de922794e3feec3742a1c7cb1bf .
This seems like something Evan only did to make pump.io import notices easier,
or maybe he just wanted to get rid of the identi.ca URLs?
Mikael Nordfeldth [Mon, 21 Oct 2013 20:25:19 +0000 (22:25 +0200)]
Only use ActivityVerb::SHARE (forwardId is deprecated)
StatusNet >= 1.0 support it.
Mikael Nordfeldth [Mon, 21 Oct 2013 16:42:15 +0000 (18:42 +0200)]
Removing rel='ostatus:attention' in favor of Salmon's rel='mentioned'
This was introduced in StatusNet 0.9.x, which is the oldest branch
on the web today as far as I know.
Mikael Nordfeldth [Mon, 21 Oct 2013 16:28:04 +0000 (18:28 +0200)]
Use pre-defined const instead of strings