]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
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

9 years agobetter explanation
Hannes Mannerheim [Fri, 9 Oct 2015 22:20:32 +0000 (00:20 +0200)]
better explanation

9 years agoconvert activity stream RFC3339 dates to mysql datetime format when saving remote...
Hannes Mannerheim [Fri, 9 Oct 2015 22:11:54 +0000 (00:11 +0200)]
convert activity stream RFC3339 dates to mysql datetime format when saving remote event dates to db

9 years agoMerge branch 'master' into 'nightly'
mmn [Fri, 9 Oct 2015 14:43:45 +0000 (14:43 +0000)]
Merge branch 'master' into 'nightly'

make events federate

See merge request !33

9 years agomake event urls federate
Hannes Mannerheim [Fri, 9 Oct 2015 14:22:47 +0000 (16:22 +0200)]
make event urls federate

9 years agoAtomPub should work now, at least for post/note
Mikael Nordfeldth [Fri, 9 Oct 2015 14:19:26 +0000 (16:19 +0200)]
AtomPub should work now, at least for post/note

9 years agoPost verb default type is 'note'
Mikael Nordfeldth [Fri, 9 Oct 2015 14:18:12 +0000 (16:18 +0200)]
Post verb default type is 'note'

9 years agomake event location federate
Hannes Mannerheim [Fri, 9 Oct 2015 14:16:13 +0000 (16:16 +0200)]
make event location federate

9 years agomake event dates federate
Hannes Mannerheim [Fri, 9 Oct 2015 14:00:33 +0000 (16:00 +0200)]
make event dates federate

9 years agoYou don't have to push objects as references
Mikael Nordfeldth [Fri, 9 Oct 2015 13:45:23 +0000 (15:45 +0200)]
You don't have to push objects as references

9 years agoConsistent camelcasing
Mikael Nordfeldth [Fri, 9 Oct 2015 13:45:05 +0000 (15:45 +0200)]
Consistent camelcasing

9 years agoMake Bsaic Auth work properly with RW actions
Mikael Nordfeldth [Fri, 9 Oct 2015 13:43:17 +0000 (15:43 +0200)]
Make Bsaic Auth work properly with RW actions

9 years agoupdate from upstream
Hannes Mannerheim [Fri, 9 Oct 2015 12:40:43 +0000 (14:40 +0200)]
update from upstream

9 years agomake events federate
Hannes Mannerheim [Fri, 9 Oct 2015 11:10:48 +0000 (13:10 +0200)]
make events federate

9 years agoSwitching variable access in ApiTimelineUser to GNUsocial improvements
Mikael Nordfeldth [Fri, 9 Oct 2015 09:23:20 +0000 (11:23 +0200)]
Switching variable access in ApiTimelineUser to GNUsocial improvements

9 years agoDon't enable StrictTransportSecurity by default
Mikael Nordfeldth [Fri, 9 Oct 2015 08:55:12 +0000 (10:55 +0200)]
Don't enable StrictTransportSecurity by default

(but you should enable it if you use TLS, but there are many who do this
through their webserver and it's odd to have double headers etc...)

9 years agoDeleted_notice variable specification fixed
Mikael Nordfeldth [Thu, 8 Oct 2015 11:20:17 +0000 (13:20 +0200)]
Deleted_notice variable specification fixed

9 years agoFound newer Diaspora protocol specifications
Mikael Nordfeldth [Mon, 5 Oct 2015 10:49:54 +0000 (12:49 +0200)]
Found newer Diaspora protocol specifications

http://www.rubydoc.info/github/Raven24/diaspora-federation/master/DiasporaFederation/Salmon/EncryptedSlap

9 years agoFIXME: Diaspora has its own salmon slap semantics
Mikael Nordfeldth [Mon, 5 Oct 2015 09:28:33 +0000 (11:28 +0200)]
FIXME: Diaspora has its own salmon slap semantics

9 years agoDiaspora encloses magic envelope in <atom:entry>??!!?!
Mikael Nordfeldth [Mon, 5 Oct 2015 09:22:23 +0000 (11:22 +0200)]
Diaspora encloses magic envelope in <atom:entry>??!!?!

9 years agoCan't use return-value in empty()
Mikael Nordfeldth [Sun, 4 Oct 2015 20:31:07 +0000 (22:31 +0200)]
Can't use return-value in empty()

9 years agoSnapshot of the Transifex translation project - October 2015
digital dreamer [Sun, 4 Oct 2015 16:23:01 +0000 (18:23 +0200)]
Snapshot of the Transifex translation project - October 2015

9 years agoMagic signature discovery and envelope changes
Mikael Nordfeldth [Sun, 4 Oct 2015 15:26:35 +0000 (17:26 +0200)]
Magic signature discovery and envelope changes

9 years agoChange some Salmon events and similar
Mikael Nordfeldth [Sun, 4 Oct 2015 15:23:11 +0000 (17:23 +0200)]
Change some Salmon events and similar

Use Profile instead of User and (if we know it) send along the target
profile, so a Diaspora plugin can encrypt to the receiver.

9 years agoMake Magicsig capable of loading public PKCS1 keys
Mikael Nordfeldth [Sun, 4 Oct 2015 15:22:19 +0000 (17:22 +0200)]
Make Magicsig capable of loading public PKCS1 keys

9 years agoSet otherwise undiscovered salmonuri on OStatus script update-profile.php
Mikael Nordfeldth [Sun, 4 Oct 2015 14:40:37 +0000 (16:40 +0200)]
Set otherwise undiscovered salmonuri on OStatus script update-profile.php

9 years agovar_export without true
Mikael Nordfeldth [Sun, 4 Oct 2015 14:40:21 +0000 (16:40 +0200)]
var_export without true

9 years agoautoloading of Crypt_AES and Crypt_RSA is easier
Mikael Nordfeldth [Sun, 4 Oct 2015 13:57:11 +0000 (15:57 +0200)]
autoloading of Crypt_AES and Crypt_RSA is easier

9 years agoAdd an event to get plugin discovery hints from XRD
Mikael Nordfeldth [Sun, 4 Oct 2015 12:46:45 +0000 (14:46 +0200)]
Add an event to get plugin discovery hints from XRD

9 years agoDiaspora plugin is almost there (for remote salmon slaps at least)
Mikael Nordfeldth [Sun, 4 Oct 2015 10:06:48 +0000 (12:06 +0200)]
Diaspora plugin is almost there (for remote salmon slaps at least)

9 years agoSend the entire XMLStringer object in MagicEnvelope events.
Mikael Nordfeldth [Sun, 4 Oct 2015 07:59:01 +0000 (09:59 +0200)]
Send the entire XMLStringer object in MagicEnvelope events.

9 years agoBreak out MagicEnvelope->toXML() functionality to allow for plugin flexibility
Mikael Nordfeldth [Sat, 3 Oct 2015 22:17:07 +0000 (00:17 +0200)]
Break out MagicEnvelope->toXML() functionality to allow for plugin flexibility

9 years agoRemove XSS attack vector in JoinListItem
Mikael Nordfeldth [Sat, 3 Oct 2015 21:51:06 +0000 (23:51 +0200)]
Remove XSS attack vector in JoinListItem

9 years agoMove around some code related to Magic_envelope and signing
Mikael Nordfeldth [Sat, 3 Oct 2015 21:25:02 +0000 (23:25 +0200)]
Move around some code related to Magic_envelope and signing

9 years agoSigh, copy-pasting when tired is a bad idea.
Mikael Nordfeldth [Sat, 3 Oct 2015 14:19:38 +0000 (16:19 +0200)]
Sigh, copy-pasting when tired is a bad idea.

9 years agoFixes to Deleted_notice
Mikael Nordfeldth [Sat, 3 Oct 2015 14:07:19 +0000 (16:07 +0200)]
Fixes to Deleted_notice

9 years agoWe haven't created the Deleted_notice yet, just use target URI directly
Mikael Nordfeldth [Sat, 3 Oct 2015 13:39:06 +0000 (15:39 +0200)]
We haven't created the Deleted_notice yet, just use target URI directly

9 years agoReturn the correct URI in Deleted_notice
Mikael Nordfeldth [Sat, 3 Oct 2015 13:31:56 +0000 (15:31 +0200)]
Return the correct URI in Deleted_notice

9 years agoDeletes now federated. But might not be handled properly
Mikael Nordfeldth [Sat, 3 Oct 2015 12:39:49 +0000 (14:39 +0200)]
Deletes now federated. But might not be handled properly

9 years agoSigh, use the correct variable name...
Mikael Nordfeldth [Sat, 3 Oct 2015 11:45:06 +0000 (13:45 +0200)]
Sigh, use the correct variable name...

9 years agoif is_local was not provided to Notice:saveActivity it wouldn't be set
Mikael Nordfeldth [Sat, 3 Oct 2015 11:24:31 +0000 (13:24 +0200)]
if is_local was not provided to Notice:saveActivity it wouldn't be set

9 years agobump to 1.2.0-beta1 as we have remote delete functionality now
Mikael Nordfeldth [Sat, 3 Oct 2015 10:39:23 +0000 (12:39 +0200)]
bump to 1.2.0-beta1 as we have remote delete functionality now

9 years agoSomewhat better logging while still in trial phase
Mikael Nordfeldth [Sat, 3 Oct 2015 10:33:33 +0000 (12:33 +0200)]
Somewhat better logging while still in trial phase

9 years agoStore delete verb as object_type=activity
Mikael Nordfeldth [Sat, 3 Oct 2015 10:29:22 +0000 (12:29 +0200)]
Store delete verb as object_type=activity

9 years agoI think all the notice deletion calls are event-compatible now
Mikael Nordfeldth [Sat, 3 Oct 2015 10:26:09 +0000 (12:26 +0200)]
I think all the notice deletion calls are event-compatible now

This means we can handle DeleteNoticeAsProfile in plugins, such as
the ActivityModeration plugin.

9 years agoSome work on ActivityModeration with notice deletion
Mikael Nordfeldth [Sat, 3 Oct 2015 00:02:37 +0000 (02:02 +0200)]
Some work on ActivityModeration with notice deletion

Let's now create an event called DeleteNotice and also make sure we
handle the onNoticeDeleteRelated properly in ActivityModeration to
avoid possible endless loops etc.

9 years agoUndefined variable use
Mikael Nordfeldth [Fri, 2 Oct 2015 23:47:40 +0000 (01:47 +0200)]
Undefined variable use

9 years agoShorthand function for getActor
Mikael Nordfeldth [Fri, 2 Oct 2015 22:43:34 +0000 (00:43 +0200)]
Shorthand function for getActor

9 years agoStoreRemoteMedia plugin to enable locally served thumbs of remote images
Mikael Nordfeldth [Thu, 1 Oct 2015 20:18:47 +0000 (22:18 +0200)]
StoreRemoteMedia plugin to enable locally served thumbs of remote images

Add addPlugin('StoreRemoteMedia'); in your config.php to enable.

9 years agoOembed fiddling, nothing major
Mikael Nordfeldth [Thu, 1 Oct 2015 20:18:33 +0000 (22:18 +0200)]
Oembed fiddling, nothing major

9 years agoFile handling changes for better logic
Mikael Nordfeldth [Thu, 1 Oct 2015 20:14:49 +0000 (22:14 +0200)]
File handling changes for better logic

Also prepares for StoreRemoteMediaPlugin, coming up...

9 years agoInlineAttachmentListItem put into its own file
Mikael Nordfeldth [Thu, 1 Oct 2015 19:40:05 +0000 (21:40 +0200)]
InlineAttachmentListItem put into its own file

9 years agoNoResultException is common if reply_to was not cleared on parent deletion
Mikael Nordfeldth [Wed, 30 Sep 2015 20:55:06 +0000 (22:55 +0200)]
NoResultException is common if reply_to was not cleared on parent deletion

9 years agoMove Ostatus_profile->processPost function into plugin
Mikael Nordfeldth [Tue, 29 Sep 2015 13:17:38 +0000 (15:17 +0200)]
Move Ostatus_profile->processPost function into plugin

9 years agoSome conversationRoot lookups failed with deleted notices
Mikael Nordfeldth [Mon, 28 Sep 2015 20:36:04 +0000 (22:36 +0200)]
Some conversationRoot lookups failed with deleted notices

9 years agoScript to test remote oEmbed endpoints
Mikael Nordfeldth [Mon, 28 Sep 2015 10:25:40 +0000 (12:25 +0200)]
Script to test remote oEmbed endpoints

9 years agoRevert "Accessibility fix, make yes button more explicit"
Mikael Nordfeldth [Sun, 27 Sep 2015 22:49:26 +0000 (00:49 +0200)]
Revert "Accessibility fix, make yes button more explicit"

This reverts commit 1864a9de382fedf47cc9d8e414440c624d3aebf1.

The problem was another label that was missing (fixed in previous commit, the close button)

9 years agoAccessibility improvement, title for popup close button
Mikael Nordfeldth [Sun, 27 Sep 2015 22:47:16 +0000 (00:47 +0200)]
Accessibility improvement, title for popup close button

Apparently it read as "times" in screen readers.

9 years agoShowprofiletagAction now extends ShowstreamAction
Mikael Nordfeldth [Sun, 27 Sep 2015 21:46:30 +0000 (23:46 +0200)]
ShowprofiletagAction now extends ShowstreamAction

9 years agoProfile/Peopletag file splitting for autoload
Mikael Nordfeldth [Sun, 27 Sep 2015 20:51:11 +0000 (22:51 +0200)]
Profile/Peopletag file splitting for autoload

9 years agoUse exception instead of if-statement in File::saveNew
Mikael Nordfeldth [Sun, 27 Sep 2015 10:29:38 +0000 (12:29 +0200)]
Use exception instead of if-statement in File::saveNew

9 years agoBe harsher on database saving failure for File entry
Mikael Nordfeldth [Sun, 27 Sep 2015 09:54:52 +0000 (11:54 +0200)]
Be harsher on database saving failure for File entry

9 years agoBring back title to DocAction
Mikael Nordfeldth [Tue, 15 Sep 2015 12:26:33 +0000 (14:26 +0200)]
Bring back title to DocAction

9 years agoDocAction now extends ManagedAction
Mikael Nordfeldth [Tue, 15 Sep 2015 10:07:35 +0000 (12:07 +0200)]
DocAction now extends ManagedAction

9 years agoatom: <link> urls should be attr, not content
Chimo [Tue, 15 Sep 2015 01:25:36 +0000 (21:25 -0400)]
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"/>

9 years agoPrepare for ActivityModerationPlugin
Mikael Nordfeldth [Thu, 10 Sep 2015 13:55:37 +0000 (15:55 +0200)]
Prepare for ActivityModerationPlugin

9 years agoCall it compareVerbs when comparing verbs
Mikael Nordfeldth [Thu, 10 Sep 2015 13:27:40 +0000 (15:27 +0200)]
Call it compareVerbs when comparing verbs

9 years agoAnnoying debug messages that were just meant to remind
Mikael Nordfeldth [Wed, 9 Sep 2015 15:48:06 +0000 (17:48 +0200)]
Annoying debug messages that were just meant to remind

9 years agoLet's handle notice dataobjects instead, despite fetching twice from db
Mikael Nordfeldth [Wed, 9 Sep 2015 15:03:52 +0000 (17:03 +0200)]
Let's handle notice dataobjects instead, despite fetching twice from db

Actually the original object should be fixed here, but we'll handle the FIXME's later.

9 years agoSplit classes into their own files
Mikael Nordfeldth [Wed, 9 Sep 2015 14:29:58 +0000 (16:29 +0200)]
Split classes into their own files

9 years agoUse Profile objects in Subscription::saveNew
Mikael Nordfeldth [Sun, 6 Sep 2015 00:04:12 +0000 (02:04 +0200)]
Use Profile objects in Subscription::saveNew

9 years agoSubscription::saveNew is a static function
Mikael Nordfeldth [Sun, 6 Sep 2015 00:01:39 +0000 (02:01 +0200)]
Subscription::saveNew is a static function

9 years agoMerge branch 'nightly'
Mikael Nordfeldth [Sat, 5 Sep 2015 23:54:00 +0000 (01:54 +0200)]
Merge branch 'nightly'

9 years agointroducing html_sprintf for easier sprintf'ing with htmlspecialchars
Mikael Nordfeldth [Sat, 5 Sep 2015 23:53:11 +0000 (01:53 +0200)]
introducing html_sprintf for easier sprintf'ing with htmlspecialchars

9 years agoAdd default icon to OAuth apps
Chimo [Sat, 5 Sep 2015 21:02:17 +0000 (17:02 -0400)]
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

9 years agoNotice_location class in db/core.php
Mikael Nordfeldth [Fri, 4 Sep 2015 21:12:23 +0000 (23:12 +0200)]
Notice_location class in db/core.php