]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
9 years agobump beta version number
Mikael Nordfeldth [Sun, 22 Nov 2015 23:42:13 +0000 (00:42 +0100)]
bump beta version number

9 years agoallow form ->li() to set $class
Mikael Nordfeldth [Sun, 22 Nov 2015 23:40:28 +0000 (00:40 +0100)]
allow form ->li() to set $class

9 years agoManaged_DataObject::newUri was called improperly
Mikael Nordfeldth [Sun, 22 Nov 2015 23:39:49 +0000 (00:39 +0100)]
Managed_DataObject::newUri was called improperly

9 years agoMerge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
Mikael Nordfeldth [Fri, 20 Nov 2015 17:50:26 +0000 (18:50 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly

9 years agoMerge branch 'refactor-file-processNew' into 'nightly'
mmn [Fri, 20 Nov 2015 17:50:01 +0000 (17:50 +0000)]
Merge branch 'refactor-file-processNew' into 'nightly'

Refactor on File::processNew

The code was so involved there was even a comment asking for a refactor.

Now, File_redirection::where always returns a nice File_redirection
object instead of an array or string or nothing.  The object is
either one which already existed or else a new, unsaved object.

Instead of duplicating "does it exist" checks everywhere, do it in
File_redirection::where.  You either get what exists or something to save.

An unsaved File_redirection may be paired with an unsaved File.
You will want to save the File first (using ->saveFile()) and put the
id in File_redirection#file_id before saving.

See merge request !57

9 years agoMerge request #59 which was directed at master
Mikael Nordfeldth [Fri, 20 Nov 2015 17:47:21 +0000 (18:47 +0100)]
Merge request #59 which was directed at master

9 years agoMerge branch 'master' into 'master'
mmn [Fri, 20 Nov 2015 17:46:53 +0000 (17:46 +0000)]
Merge branch 'master' into 'master'

block check can't be done inside the same try-expression as Subscription::getSub…

…scription(), since if that throws a NoResultException, the block check will not be done. and if you're blocking someone you are not subscribing to them.

See merge request !59

9 years agoblock check can't be done inside the same try-expression as Subscription::getSubscrip...
hannes [Thu, 19 Nov 2015 15:55:11 +0000 (15:55 +0000)]
block check can't be done inside the same try-expression as Subscription::getSubscription(), since if that throws a NoResultException, the block check will not be done. and if you're blocking someone you are not subscribing to them.

9 years agoMake it clearer that we're handling group IDs
Mikael Nordfeldth [Sun, 8 Nov 2015 22:31:45 +0000 (23:31 +0100)]
Make it clearer that we're handling group IDs

9 years agoFix federation issue with groups (bad list order)
Mikael Nordfeldth [Sun, 8 Nov 2015 22:31:23 +0000 (23:31 +0100)]
Fix federation issue with groups (bad list order)

9 years agoOoops, copypasted something into the wrong place.
Mikael Nordfeldth [Sun, 8 Nov 2015 22:24:20 +0000 (23:24 +0100)]
Ooops, copypasted something into the wrong place.

9 years agoOStatus usage of static Validate::* calls fixed
Mikael Nordfeldth [Sun, 8 Nov 2015 09:33:41 +0000 (10:33 +0100)]
OStatus usage of static Validate::* calls fixed

9 years agoMerge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
Mikael Nordfeldth [Fri, 6 Nov 2015 12:39:17 +0000 (13:39 +0100)]
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly

9 years agoMerge branch 'in-reply-to-uf2' into 'master'
mmn [Fri, 6 Nov 2015 12:39:02 +0000 (12:39 +0000)]
Merge branch 'in-reply-to-uf2' into 'master'

Add direct link to parent notice

This is partly for usability, and partly to make Linkbacks for replies work (when the plugin is enabled).

See merge request !37

9 years agoseparate classes into files in DirectMessage plugin
Mikael Nordfeldth [Fri, 6 Nov 2015 12:35:45 +0000 (13:35 +0100)]
separate classes into files in DirectMessage plugin

9 years agoMerge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
Mikael Nordfeldth [Fri, 6 Nov 2015 12:33:24 +0000 (13:33 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly

9 years agoMerge branch 'nightly' into 'nightly'
mmn [Fri, 6 Nov 2015 12:28:00 +0000 (12:28 +0000)]
Merge branch 'nightly' into 'nightly'

getParent() method will fail if the parent notice does not exist in the notice table

getParent() method will fail if the parent notice does not exist in the notice table. See https://quitter.no/notice/709400

There are situations where a user delete his notice which could be a parent notice to a reply.
The user which replied to this deleted notice will then have broken timeline.
This is caused by the Notice.getParent() method which tries to return the selection of non existing parent notice.

I've tried this code on quitter.no and it seems to work.

See merge request !35

9 years agoMerge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
abjectio [Thu, 5 Nov 2015 16:34:34 +0000 (17:34 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly

9 years agoMerge branch 'master' of git.gnu.io:gnu/gnu-social into nightly
Mikael Nordfeldth [Thu, 5 Nov 2015 15:16:02 +0000 (16:16 +0100)]
Merge branch 'master' of git.gnu.io:gnu/gnu-social into nightly

Conflicts:
plugins/OStatus/OStatusPlugin.php

master vs. nightly thing

9 years agoMerge branch 'renew-pshb' into 'master'
mmn [Thu, 5 Nov 2015 15:13:16 +0000 (15:13 +0000)]
Merge branch 'renew-pshb' into 'master'

Actually use the renew code

We have the code to check once a day and renew, but currently it's
just in a script directory.  This change adds an event listener
hook to check and renew subscriptions daily.

Closes #83

See merge request !38

9 years agoMerge branch 'object-types-are-absolute' into 'master'
mmn [Thu, 5 Nov 2015 15:12:41 +0000 (15:12 +0000)]
Merge branch 'object-types-are-absolute' into 'master'

Stop incorrecly changing object_type to relative URI

All other data is using absolute URI for object_type.

See merge request !40

9 years agoMerge branch 'fix-webfinger-link-header' into 'master'
mmn [Thu, 5 Nov 2015 15:12:10 +0000 (15:12 +0000)]
Merge branch 'fix-webfinger-link-header' into 'master'

Add all link headers, not just the last one

Given the way Link headers work, it does not make any sense to
just replace all other ones.  Especially when we ourselves are adding
in a loop.

See merge request !47

9 years agoMerge branch 'pings-interop' into 'master'
mmn [Thu, 5 Nov 2015 15:11:29 +0000 (15:11 +0000)]
Merge branch 'pings-interop' into 'master'

Clean up Linkback plugin and add Webmention support

Closes #82

Fixes Pingback, adds Webmention, makes linkbacks opt-out-able for users (at request of quitter.se admin)

See merge request !36

9 years agoMerge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly
Mikael Nordfeldth [Thu, 5 Nov 2015 15:07:42 +0000 (16:07 +0100)]
Merge branch 'nightly' of git.gnu.io:gnu/gnu-social into nightly

9 years agoMerge branch 'master' into nightly
Mikael Nordfeldth [Thu, 5 Nov 2015 15:07:05 +0000 (16:07 +0100)]
Merge branch 'master' into nightly

Some merge requests that were aimed at master

9 years agoMerge branch 'master' into 'master'
mmn [Thu, 5 Nov 2015 15:05:55 +0000 (15:05 +0000)]
Merge branch 'master' into 'master'

update URL

bugz.foocorp.net and gitorious.net are outdated
git.gnu.io is current

See merge request !58

9 years agoMerge branch 'status-204' into 'master'
mmn [Thu, 5 Nov 2015 15:03:42 +0000 (15:03 +0000)]
Merge branch 'status-204' into 'master'

Accept 204 for PuSH subscription

Some hubs (notably, pushpress, used by wordpress.com) return 204 to mean success.

This used to be allowed by the spec, so no harm in accepting it.

See merge request !48

9 years agoMerge branch 'handle-rss-guid' into 'master'
mmn [Thu, 5 Nov 2015 15:02:20 +0000 (15:02 +0000)]
Merge branch 'handle-rss-guid' into 'master'

Respect isPermalLink=false on RSS guid

See merge request !49

9 years agoMerge branch 'twitter-verb' into 'nightly'
mmn [Thu, 5 Nov 2015 15:01:07 +0000 (15:01 +0000)]
Merge branch 'twitter-verb' into 'nightly'

TwitterBridge: Add $notice->verb on import

Since /plugins/ActivityModeration::onStartNotieSave expects it to be there when calling ActivityUtils::compareVerbs. Otherwise, the following exception is unhandled:

2015-10-26 15:33:03 LOG_ERR: [sn.chromic.org:queuedaemon.php:25931] Unhandled exception: No URI to resolve in ActivityUtils::resolveUri
 0: /lib/activityutils.php(353): ActivityUtils::resolveUri(NULL)
 1: /lib/activityutils.php(364): ActivityUtils::compareTypes(NULL, Array)
 2: /plugins/ActivityModeration/ActivityModerationPlugin.php(113): ActivityUtils::compareVerbs(NULL, Array)
 3: [internal function]: ActivityModerationPlugin->onStartNoticeSave(Object(Notice))
 4: /lib/event.php(105): call_user_func_array(Array, Array)
 5: /plugins/TwitterBridge/lib/twitterimport.php(173): Event::handle('StartNoticeSave', Array)
 6: /plugins/TwitterBridge/lib/twitterimport.php(72): TwitterImport->saveStatus(Object(stdClass))
 7: /plugins/TwitterBridge/lib/tweetinqueuehandler.php(52): TwitterImport->importStatus(Object(stdClass))
 8: /lib/dbqueuemanager.php(94): TweetInQueueHandler->handle(Array)
 9: /lib/iomaster.php(287): DBQueueManager->poll()
 10: /lib/iomaster.php(161): IoMaster->poll()
 11: /scripts/queuedaemon.php(111): IoMaster->service()
 12: /lib/spawningdaemon.php(189): QueueDaemon->runThread()
 13: /lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(2)
 14: /lib/daemon.php(168): SpawningDaemon->run()
 15: /scripts/queuedaemon.php(181): Daemon->runOnce()
 16: {main}

See merge request !50

9 years agoMerge branch 'correct-author-for-repeat' into 'master'
mmn [Thu, 5 Nov 2015 15:00:35 +0000 (15:00 +0000)]
Merge branch 'correct-author-for-repeat' into 'master'

Markup correct author for a repeat

The original author is not the author of this entry, but of the original entry.

See merge request !51

9 years agoMerge branch 'support-atom-namespaces-in-rss-author' into 'master'
mmn [Thu, 5 Nov 2015 15:00:07 +0000 (15:00 +0000)]
Merge branch 'support-atom-namespaces-in-rss-author' into 'master'

Support more author types on RSS

Specifically, any ActivityStreams or ATOM namespaces being used on
an rss channel.

See merge request !52

9 years agoMerge branch 'group-join' into 'nightly'
mmn [Thu, 5 Nov 2015 14:57:29 +0000 (14:57 +0000)]
Merge branch 'group-join' into 'nightly'

Add User_group::getObjectType

Since 174586bd512, I'm unable to join groups with the logs complaining
about getObjectType not existing on the User_group object.

Note: I'm not sure if this is the correct value to return here, but I
was able to joing groups successfully using this. Let me know if it needs
to be changed and I'll update the Merge Request!

See merge request !56

9 years agoupdate URL
Matthias Fritzsche [Wed, 4 Nov 2015 11:31:23 +0000 (12:31 +0100)]
update URL

bugz.foocorp.net and gitorious.net are outdated
git.gnu.io is current

9 years agoRefactor on File::processNew
Stephen Paul Weber [Mon, 2 Nov 2015 05:15:08 +0000 (05:15 +0000)]
Refactor on File::processNew

The code was so involved there was even a comment asking for a refactor.

Now, File_redirection::where always returns a nice File_redirection
object instead of an array or string or nothing.  The object is
either one which already existed or else a new, unsaved object.

Instead of duplicating "does it exist" checks everywhere, do it in
File_redirection::where.  You either get what exists or something to save.

An unsaved File_redirection may be paired with an unsaved File.
You will want to save the File first (using ->saveFile()) and put the
id in File_redirection#file_id before saving.

9 years agoAdd User_group::getObjectType
Chimo [Fri, 30 Oct 2015 00:11:57 +0000 (20:11 -0400)]
Add User_group::getObjectType

Since 174586bd512, I'm unable to join groups with the logs complaining
about getObjectType not existing on the User_group object.

9 years agoShared notices didn't save the URL
Mikael Nordfeldth [Tue, 27 Oct 2015 23:13:17 +0000 (00:13 +0100)]
Shared notices didn't save the URL

9 years agoSupport more author types on RSS
Stephen Paul Weber [Tue, 27 Oct 2015 18:43:57 +0000 (18:43 +0000)]
Support more author types on RSS

Specifically, any ActivityStreams or ATOM namespaces being used on
an rss channel.

9 years agoBad HTML in translation.
Mikael Nordfeldth [Tue, 27 Oct 2015 18:05:07 +0000 (19:05 +0100)]
Bad HTML in translation.

9 years agoMorkup correct author for a repeat
Stephen Paul Weber [Tue, 27 Oct 2015 17:19:03 +0000 (17:19 +0000)]
Morkup correct author for a repeat

The original author is not the author of this entry, but of the original entry.

9 years agoTwitterBridge: Add $notice->verb on import
Chimo [Tue, 27 Oct 2015 14:12:33 +0000 (10:12 -0400)]
TwitterBridge: Add $notice->verb on import

Since /plugins/ActivityModeration::onStartNotieSave expects it to be there when calling ActivityUtils::compareVerbs. Otherwise, the following exception is unhandled:

2015-10-26 15:33:03 LOG_ERR: [sn.chromic.org:queuedaemon.php:25931] Unhandled exception: No URI to resolve in ActivityUtils::resolveUri
 #0 /lib/activityutils.php(353): ActivityUtils::resolveUri(NULL)
 #1 /lib/activityutils.php(364): ActivityUtils::compareTypes(NULL, Array)
 #2 /plugins/ActivityModeration/ActivityModerationPlugin.php(113): ActivityUtils::compareVerbs(NULL, Array)
 #3 [internal function]: ActivityModerationPlugin->onStartNoticeSave(Object(Notice))
 #4 /lib/event.php(105): call_user_func_array(Array, Array)
 #5 /plugins/TwitterBridge/lib/twitterimport.php(173): Event::handle('StartNoticeSave', Array)
 #6 /plugins/TwitterBridge/lib/twitterimport.php(72): TwitterImport->saveStatus(Object(stdClass))
 #7 /plugins/TwitterBridge/lib/tweetinqueuehandler.php(52): TwitterImport->importStatus(Object(stdClass))
 #8 /lib/dbqueuemanager.php(94): TweetInQueueHandler->handle(Array)
 #9 /lib/iomaster.php(287): DBQueueManager->poll()
 #10 /lib/iomaster.php(161): IoMaster->poll()
 #11 /scripts/queuedaemon.php(111): IoMaster->service()
 #12 /lib/spawningdaemon.php(189): QueueDaemon->runThread()
 #13 /lib/spawningdaemon.php(118): SpawningDaemon->initAndRunChild(2)
 #14 /lib/daemon.php(168): SpawningDaemon->run()
 #15 /scripts/queuedaemon.php(181): Daemon->runOnce()
 #16 {main}

9 years agoRespect isPermalLink=false on RSS guid
Stephen Paul Weber [Tue, 27 Oct 2015 03:18:04 +0000 (03:18 +0000)]
Respect isPermalLink=false on RSS guid

9 years agoAccept 204 for PuSH subscription
Stephen Paul Weber [Tue, 27 Oct 2015 03:16:39 +0000 (03:16 +0000)]
Accept 204 for PuSH subscription

Some hubs (notably, pushpress, used by wordpress.com) return 204 to mean success.

This used to be allowed by the spec, so no harm in accepting it.

9 years agoAdd all link headers, not just the last one
Stephen Paul Weber [Sun, 25 Oct 2015 18:42:37 +0000 (18:42 +0000)]
Add all link headers, not just the last one

Given the way Link headers work, it does not make any sense to
just replace all other ones.  Especially when we ourselves are adding
in a loop.

9 years agoLinkback to mentioned profiles
Stephen Paul Weber [Sun, 25 Oct 2015 17:22:15 +0000 (17:22 +0000)]
Linkback to mentioned profiles

9 years agoOnly show parent wrapper if there are some
Stephen Paul Weber [Fri, 23 Oct 2015 18:51:33 +0000 (18:51 +0000)]
Only show parent wrapper if there are some

9 years agoStop incorrecly changing object_type to relative URI
Stephen Paul Weber [Thu, 22 Oct 2015 17:14:59 +0000 (17:14 +0000)]
Stop incorrecly changing object_type to relative URI

All other data is using absolute URI for object_type.

9 years agoEnqueue renewals
Stephen Paul Weber [Wed, 21 Oct 2015 01:50:03 +0000 (01:50 +0000)]
Enqueue renewals

Better for request times, etc

9 years agoRenew 1 day *before* the end, not 1 day *after*
Stephen Paul Weber [Wed, 21 Oct 2015 01:49:26 +0000 (01:49 +0000)]
Renew 1 day *before* the end, not 1 day *after*

9 years agoActually use the renew code
Stephen Paul Weber [Wed, 21 Oct 2015 01:10:48 +0000 (01:10 +0000)]
Actually use the renew code

We have the code to check once a day and renew, but currently it's
just in a script directory.  This change adds an event listener
hook to check and renew subscriptions daily.

9 years agoAdd direct link to parent notice
Stephen Paul Weber [Mon, 19 Oct 2015 18:40:40 +0000 (18:40 +0000)]
Add direct link to parent notice

This is partly for usability, and partly to make Linkbacks for replies
work (when the plugin is enabled).

9 years agoAllow users to opt out of sending linkbacks
Stephen Paul Weber [Sun, 18 Oct 2015 21:28:55 +0000 (21:28 +0000)]
Allow users to opt out of sending linkbacks

9 years agoRemoved inboxmessagelist.php - seems to be not needed. Ref. Issue #77
abjectio [Sun, 18 Oct 2015 15:34:36 +0000 (17:34 +0200)]
Removed inboxmessagelist.php - seems to be not needed. Ref. Issue #77

9 years agoFix Pingback
Stephen Paul Weber [Sat, 17 Oct 2015 13:39:46 +0000 (13:39 +0000)]
Fix Pingback

This code was using the HTTPRequest helpers wrong.  This commit sets the body directly instead of jamming the XML in as a POST param.

9 years agoSend URL we publish
Stephen Paul Weber [Sat, 17 Oct 2015 13:38:13 +0000 (13:38 +0000)]
Send URL we publish

Webmention and Pingback both need the exact URL we are going to claim to link to to be present in our HTML source, so send them our actual original link.

Webmention clients are supposed to resolve this link.  Pingback clients may still fail on shortened links.

9 years agoBug in catch(Exception) - parameter wrongly written
abjectio [Fri, 16 Oct 2015 21:48:05 +0000 (23:48 +0200)]
Bug in catch(Exception) - parameter wrongly written

9 years agoAdd webmention support
Stephen Paul Weber [Wed, 14 Oct 2015 21:13:58 +0000 (16:13 -0500)]
Add webmention support

9 years agoNote that we should handle relative URIs
Stephen Paul Weber [Wed, 14 Oct 2015 21:13:25 +0000 (16:13 -0500)]
Note that we should handle relative URIs

9 years agoNormalize detection helpers
Stephen Paul Weber [Wed, 14 Oct 2015 20:54:47 +0000 (15:54 -0500)]
Normalize detection helpers

Will make it easier to see what's happening when we add a third one.

9 years agoNotify replies and repeats
Stephen Paul Weber [Wed, 14 Oct 2015 20:47:00 +0000 (15:47 -0500)]
Notify replies and repeats

This is especially useful for partial federation with remote accounts
that are not fully OStatus-enabled but support a pingback protocol.
Such accounts will still be notified of replies and repeats of their
content even without OStatus support, thus adding to the federated
universe.

9 years agoUse the getter, not a direct access
Stephen Paul Weber [Wed, 14 Oct 2015 20:32:12 +0000 (15:32 -0500)]
Use the getter, not a direct access

9 years agoMore robust pingback link detection
Stephen Paul Weber [Wed, 14 Oct 2015 20:28:38 +0000 (15:28 -0500)]
More robust pingback link detection

9 years agogeParent() method will fail if the parent notice does not exist in the notice table...
abjectio [Wed, 14 Oct 2015 16:50:39 +0000 (18:50 +0200)]
geParent() method will fail if the parent notice does not exist in the notice table. See https://quitter.no/notice/709400

9 years agoLink source==share notices
Mikael Nordfeldth [Tue, 13 Oct 2015 23:30:29 +0000 (01:30 +0200)]
Link source==share notices

9 years agoOnly set ->actor in a case where it has not yet been set
Mikael Nordfeldth [Tue, 13 Oct 2015 23:18:28 +0000 (01:18 +0200)]
Only set ->actor in a case where it has not yet been set

Otherwise it could overwrite it with the wrong actor (the "second round"
for share activities)

9 years agointval for type assurance
Mikael Nordfeldth [Tue, 13 Oct 2015 23:16:22 +0000 (01:16 +0200)]
intval for type assurance

9 years agoType-aware comparison is necessary for Notice is_local/scope
Mikael Nordfeldth [Tue, 13 Oct 2015 22:27:51 +0000 (00:27 +0200)]
Type-aware comparison is necessary for Notice is_local/scope

9 years agoCall Notice::saveActivity instead of Ostatus_profile->processActivity
Mikael Nordfeldth [Tue, 13 Oct 2015 22:10:33 +0000 (00:10 +0200)]
Call Notice::saveActivity instead of Ostatus_profile->processActivity

9 years agoRemote notice creators should not have notice is_local default to LOCAL_PUBLIC
Mikael Nordfeldth [Tue, 13 Oct 2015 22:10:01 +0000 (00:10 +0200)]
Remote notice creators should not have notice is_local default to LOCAL_PUBLIC

9 years agoShared activities were missing the actor
Mikael Nordfeldth [Tue, 13 Oct 2015 21:40:35 +0000 (23:40 +0200)]
Shared activities were missing the actor

9 years agoAdd a url test in Notice::saveActivity
Mikael Nordfeldth [Tue, 13 Oct 2015 21:37:26 +0000 (23:37 +0200)]
Add a url test in Notice::saveActivity

9 years agoWrong variable names in SharePlugin
Mikael Nordfeldth [Tue, 13 Oct 2015 21:18:13 +0000 (23:18 +0200)]
Wrong variable names in SharePlugin

9 years agoBad variable name in File_redirection
Mikael Nordfeldth [Tue, 13 Oct 2015 20:57:45 +0000 (22:57 +0200)]
Bad variable name in File_redirection

9 years agoRemoving excess debug logging
Mikael Nordfeldth [Tue, 13 Oct 2015 20:55:27 +0000 (22:55 +0200)]
Removing excess debug logging

9 years agoBookmark:addNew did not add a proper rel=related
Mikael Nordfeldth [Tue, 13 Oct 2015 10:31:35 +0000 (12:31 +0200)]
Bookmark:addNew did not add a proper rel=related

9 years agoBetter error handling in Bookmark
Mikael Nordfeldth [Mon, 12 Oct 2015 16:28:32 +0000 (18:28 +0200)]
Better error handling in Bookmark

9 years agoBookmarks are almost migrated
Mikael Nordfeldth [Mon, 12 Oct 2015 15:48:23 +0000 (17:48 +0200)]
Bookmarks are almost migrated

Now they are just not being saved in the bookmark table.

9 years agoJust a functionifying of Notice->rendered
Mikael Nordfeldth [Mon, 12 Oct 2015 15:16:13 +0000 (17:16 +0200)]
Just a functionifying of Notice->rendered

9 years agoChange Bookmark plugin version details
Mikael Nordfeldth [Mon, 12 Oct 2015 07:47:30 +0000 (09:47 +0200)]
Change Bookmark plugin version details

9 years agoWoops, put the bookmark get* functions in the wrong file.
Mikael Nordfeldth [Sun, 11 Oct 2015 20:08:28 +0000 (22:08 +0200)]
Woops, put the bookmark get* functions in the wrong file.

9 years agoFirst step of making Bookmark saveActivity-compatible
Mikael Nordfeldth [Sat, 10 Oct 2015 21:47:43 +0000 (23:47 +0200)]
First step of making Bookmark saveActivity-compatible

9 years agoStricter typing for Bookmark plugin
Mikael Nordfeldth [Sat, 10 Oct 2015 21:15:51 +0000 (23:15 +0200)]
Stricter typing for Bookmark plugin

9 years agounmaintained plugins that accidentally got translations
Mikael Nordfeldth [Sat, 10 Oct 2015 20:40:05 +0000 (22:40 +0200)]
unmaintained plugins that accidentally got translations

9 years agoMerge branch 'master' into 'nightly'
mmn [Sat, 10 Oct 2015 20:38:01 +0000 (20:38 +0000)]
Merge branch 'master' into 'nightly'

convert activity stream RFC3339 dates to mysql datetime format when saving remote event dates to db

See merge request !34

9 years agoMerge branch 'page_title_showstream' into 'nightly'
mmn [Sat, 10 Oct 2015 20:36:59 +0000 (20:36 +0000)]
Merge branch 'page_title_showstream' into 'nightly'

Show page title in user's profile page

Enable page title on user's profile page to make it consistent with all other pages and better orient users.

![Screenshot_-_250715_-_14_50_00](https://git.gnu.io/aroque/gnu-social/uploads/06e92b233e88fdb66047fbc0571f9831/Screenshot_-_250715_-_14_50_00.png)

See merge request !22

9 years agoMerge branch 'translation-snapshot-october-2015' into 'nightly'
mmn [Sat, 10 Oct 2015 20:36:04 +0000 (20:36 +0000)]
Merge branch 'translation-snapshot-october-2015' into 'nightly'

Snapshot of the Transifex translation project - October 2015

It's been 7 months since the last localization update, and the files in the repository are out of sync with the current state of the project. Our Transifex team has since grown to 63 translators, many of them are active members of the GNU social community. I don't know how we will resolve this situation, but it is clear that we have to act. If you plan to redesign the plugin system in the future to support external repository for localizations, that would work as well. But now, please let us do an update. It would be a serious disgrace to the community to throw all of their hard work away.

See merge request !32

9 years agoMerge branch 'usergroups_page' into 'nightly'
mmn [Sat, 10 Oct 2015 20:35:36 +0000 (20:35 +0000)]
Merge branch 'usergroups_page' into 'nightly'

Improve display of user's groups page.

* Show page notice as for subscriptions
* Show instructions when user has no groups
* Add explanation of remote groups and link to skilledtest wiki

Here is how it looks when a logged in user is not following groups yet

![login_nogroups](https://git.gnu.io/aroque/gnu-social/uploads/34b1bdcdb9e7277ec3deff4594061c59/login_nogroups.png)

After following a group, you still see the instruction notice. This way you have links to searching groups and creating a new one.

![login_groups](https://git.gnu.io/aroque/gnu-social/uploads/cb50689bcdfca7adc5cdcbe620487aa4/login_groups.png)

Finally when logged out:

![nologin_groups](https://git.gnu.io/aroque/gnu-social/uploads/40d81ab909321f8729c2696dd3938d46/nologin_groups.png)

The current version on nightly has basically no text at all.

See merge request !25

9 years agoMerge branch 'oauth-default-icon' into 'nightly'
mmn [Sat, 10 Oct 2015 20:34:22 +0000 (20:34 +0000)]
Merge branch 'oauth-default-icon' into 'nightly'

Add default icon to OAuth apps

When MySQL runs in strict mode, it doesn't seem possible to add a new OAuth app.

This is because:
 * The 'icon' field has no defaults and also has NOT NULL constraint.
 * GS uploads/sets the icon[1] (if provided) after the SQL insert[2]

The easiest fix seemed to be to provide a default icon value.
This change sets the default to the  "blue peg" default avatar from the base theme.

[1]
https://git.gnu.io/gnu/gnu-social/blob/7f30e614027fa27e83ecc32eb5443ee82d03f0f7/actions/newapplication.php#L176

[2]
https://git.gnu.io/gnu/gnu-social/blob/7f30e614027fa27e83ecc32eb5443ee82d03f0f7/actions/newapplication.php#L186

See merge request !29

9 years agoMerge branch 'link-atom-fix' into 'nightly'
mmn [Sat, 10 Oct 2015 20:33:58 +0000 (20:33 +0000)]
Merge branch 'link-atom-fix' into 'nightly'

atom: <link> urls should be attr, not content

Some activities (ex: repeats and follows) have <link>s like this:
<link rel="alternate" type="text/html">http://example.org</link>

This commit changes them to:
<link rel="alternate" type="text/html" href="http://example.org"/>

See merge request !30

9 years agoSyntax and minor fixes
Mikael Nordfeldth [Sat, 10 Oct 2015 20:20:53 +0000 (22:20 +0200)]
Syntax and minor fixes

Deleted_notice and Bookmark getByPK assocative array for example.

9 years agoSome code aligning for consistency
Mikael Nordfeldth [Sat, 10 Oct 2015 20:09:51 +0000 (22:09 +0200)]
Some code aligning for consistency

9 years agoStart reworking Bookmark plugin for more modern code
Mikael Nordfeldth [Sat, 10 Oct 2015 19:53:45 +0000 (21:53 +0200)]
Start reworking Bookmark plugin for more modern code

9 years agoUsing some Managed_DataObject::getByPK calls for consistency
Mikael Nordfeldth [Sat, 10 Oct 2015 19:40:02 +0000 (21:40 +0200)]
Using some Managed_DataObject::getByPK calls for consistency

9 years agonewUri might as well be put in Managed_DataObject
Mikael Nordfeldth [Sat, 10 Oct 2015 19:31:26 +0000 (21:31 +0200)]
newUri might as well be put in Managed_DataObject

9 years agoIf that $options key wasn't set, this won't change anything anyway
Mikael Nordfeldth [Sat, 10 Oct 2015 19:22:07 +0000 (21:22 +0200)]
If that $options key wasn't set, this won't change anything anyway

9 years agoMatch parent class definition of clientError
Mikael Nordfeldth [Sat, 10 Oct 2015 18:51:53 +0000 (20:51 +0200)]
Match parent class definition of clientError

9 years agoUse an atom:link to ApiMediaUpload response instead of mediahref
Mikael Nordfeldth [Sat, 10 Oct 2015 18:36:54 +0000 (20:36 +0200)]
Use an atom:link to ApiMediaUpload response instead of mediahref

'cause why not?

9 years agoAdd mediahref in our incredibly arbitrary response
Mikael Nordfeldth [Sat, 10 Oct 2015 15:15:29 +0000 (17:15 +0200)]
Add mediahref in our incredibly arbitrary response

9 years agoDon't send multiple error responses in ApiMediaUpload :)
Mikael Nordfeldth [Sat, 10 Oct 2015 15:12:44 +0000 (17:12 +0200)]
Don't send multiple error responses in ApiMediaUpload :)

9 years agoSearch engine fix because Directory did a 'join'
Mikael Nordfeldth [Sat, 10 Oct 2015 10:16:12 +0000 (12:16 +0200)]
Search engine fix because Directory did a 'join'

Colliding columns with a very lacking error message from DB ;)

9 years agoI think I have made the delete verb generate proper AS
Mikael Nordfeldth [Sat, 10 Oct 2015 09:08:17 +0000 (11:08 +0200)]
I think I have made the delete verb generate proper AS

ActivityStreams had a different/better definition than me
in how to define the Delete verb data:
http://wiki.activitystrea.ms/w/page/23541872/Delete