]> git.mxchange.org Git - quix0rs-gnu-social.git/commit - lib/framework.php
Merge branch 'oauth-default-icon' into 'nightly'
authormmn <mmn@hethane.se>
Sat, 10 Oct 2015 20:34:22 +0000 (20:34 +0000)
committermmn <mmn@hethane.se>
Sat, 10 Oct 2015 20:34:22 +0000 (20:34 +0000)
commit77951647cef2b025f4c5731c00713a455d20498d
treec399d33d6aeb3deaa4536ab5ae29516b55afba32
parent238d2a387623743fd98c84783ce360bf1d2db6ee
parentdc5dd69f2e365a3addada658fe8fc69f180f6329
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