Mikael Nordfeldth
3755faf558
SVG files can be used as thumbnails I guess
2015-03-05 11:59:11 +01:00
Mikael Nordfeldth
ff6969302b
Some SVG files are "text/html" according to 'file'
2015-03-05 11:54:30 +01:00
Mikael Nordfeldth
22dbeaef29
Used ->find(true) on wrong object
2015-03-04 13:46:51 +01:00
Mikael Nordfeldth
f6df1f1dd3
Documentation and more understandable code.
2015-03-04 13:29:18 +01:00
Mikael Nordfeldth
286b54e527
Use getUrl() on File and File_thumbnail instead of ->url
2015-03-04 13:13:20 +01:00
Mikael Nordfeldth
a4af51b5ba
Move thumbnail algorithm mainly to ImageFile class
2015-03-04 13:12:42 +01:00
Mikael Nordfeldth
ec4e432d55
Subscription::ensureStart skips AlreadyFulfilledException
...
Sometimes we just want to accept the user's wrong, but when it comes
to remote APIs etc. we probably want to let the client know it has
done something already (in this case multiple identical subscription
requests - which might indicate to it that it should refresh the sub
lists or something).
2015-03-04 11:38:04 +01:00
Mikael Nordfeldth
bece816ec7
User class throws exception on register failure
2015-03-01 12:36:19 +01:00
Mikael Nordfeldth
746e658f3e
Don't log every included config file
...
but let us retrieve the list by running GNUsocial::configFiles()
2015-02-28 13:04:17 +01:00
Mikael Nordfeldth
7e65f4f6ea
StatusNet to GNU social renaming in minor places
2015-02-27 12:55:25 +01:00
Mikael Nordfeldth
8fac7a9f6c
StatusNet class renamed GNUsocial
...
also added backward compatible StatusNet class for the two calls I know
third party plugins use, isHTTPS and getActivePlugins
2015-02-27 12:44:15 +01:00
Mikael Nordfeldth
f25e5e3860
Start and EndActionExecute added/fixed/documented
2015-02-27 12:11:43 +01:00
Mikael Nordfeldth
4e26527447
Change branch to 1.2.x since we're utf8mb4 now
2015-02-27 10:04:29 +01:00
Mikael Nordfeldth
c214aa5149
Merge branch 'master' into nightly
...
Conflicts:
lib/apiaction.php
2015-02-27 10:01:55 +01:00
Mikael Nordfeldth
c81cd18796
I hereby dub thee 1.1.3 - The Spanish Invasion
2015-02-27 09:58:38 +01:00
Mikael Nordfeldth
d524ad8b59
Pass Profile to asAtomEntry
2015-02-27 09:57:49 +01:00
Mikael Nordfeldth
48f8f3f5cf
php5-intl is recommended but not required
2015-02-26 22:58:36 +01:00
Mikael Nordfeldth
b0e767eaf1
NoticeOptions above NoticeAttachments
2015-02-25 16:22:59 +01:00
Mikael Nordfeldth
38729133e2
HTML5 media <source> tags are short tags
2015-02-25 12:49:15 +01:00
Mikael Nordfeldth
220a13b87f
mimetype added to ImageFile
2015-02-25 01:33:32 +01:00
Mikael Nordfeldth
4b8301d39e
ImageFile constructor changed to align with existing code
...
Noone passed type, width or height to new ImageFile(...) and
in all instances, both parameters were set (though $id is null on occasion).
2015-02-25 01:31:44 +01:00
Mikael Nordfeldth
0854a84eb9
Throw more explicit exception in ImageFile
2015-02-25 01:14:27 +01:00
Mikael Nordfeldth
325e784ccd
Don't store duplicates of files.
...
If a new file is uploaded, it will be matched with a previously uploaded
file so we don't have to store duplicates. SHA256 is random enough and
also unlikely enough to cause collisions.
2015-02-24 21:11:25 +01:00
Mikael Nordfeldth
96099807e1
Default install to site profile community
2015-02-20 01:00:28 +01:00
Mikael Nordfeldth
0590f2975e
Merge branch 'utf8mb4' into nightly
...
Conflicts because of urlhash fixes:
classes/File.php
classes/File_redirection.php
classes/File_thumbnail.php
2015-02-19 20:50:40 +01:00
Mikael Nordfeldth
5b940f255f
Mediafile updated to insert urlhash and lookup properly
2015-02-19 19:19:47 +01:00
Mikael Nordfeldth
45dc76de26
File and File_redirection adhoc storage methods updated for urlhash
2015-02-19 19:05:24 +01:00
Mikael Nordfeldth
66df043c19
Add php5-intl dependency to Installer class
2015-02-18 00:47:00 +01:00
Mikael Nordfeldth
0deaf6c50c
use common_purify to purify HTML, one function to rule them all
2015-02-18 00:14:28 +01:00
Mikael Nordfeldth
3dce6d9f6a
Implement a common_purify for htmLawed and more
...
We're removing unicode formatting characters as well, such as RTL marks.
For more info on why we're because extra cautious (but may accept the
characters in later versions) you can read:
https://blog.malwarebytes.org/online-security/2014/01/the-rtlo-method/
2015-02-18 00:10:31 +01:00
Mikael Nordfeldth
7ba7f43199
Don't linkify bare domains by default
...
It's too farfetched to assume any text.com in a notice is an HTTP URL.
For example stuff like pasting from log entries, with domain.com:1234
where 1234 is a _PID_ or something, not a port number for http://...
2015-02-17 20:54:32 +01:00
Mikael Nordfeldth
c31c2d10b9
PHP>=5.4.0 lets us use Transliterator, tags now asciified!
...
For example: #REVOLUCIÓN becomes #revolucion instead of #revolución
2015-02-17 20:17:22 +01:00
Mikael Nordfeldth
6cdedf6049
Replace $this->user/auth_user with $this->scoped in lib/apiaction.php
...
We prefer handling a Profile class rather than the User class, as some
functions might be useful for remote users as well, which cannot be
handled via the User class.
2015-02-17 17:16:33 +01:00
Chimo
fb03fc073a
ApiTimelineList: Fixes ServerErrorAction
...
"No matches for action 'ApiTimelineList' with arguments 'format=atom
id=1'"
for 'api/:user/lists/:id/statuses.:format' URLs
2015-02-15 16:00:23 -05:00
Mikael Nordfeldth
b6b9036821
StartSubMenu and EndSubMenu events
2015-02-14 17:32:35 +01:00
Mikael Nordfeldth
dc0b62f636
Merge commit 'refs/merge-requests/45' of https://gitorious.org/social/mainline into merge-requests/45
2015-02-14 16:45:04 +01:00
buttle
9a8ccbaef2
Call HomeStubNav instead of duplicating code
...
adminpanelnav.php adds a homeStub but does not use the code created for the job.
2015-02-13 16:38:22 +01:00
buttle
d0347bb98f
Removing home stub if empty
...
Added an Event HomeStubNavItems
menu->subMenu() returns false if empty
2015-02-13 16:26:41 +01:00
Mikael Nordfeldth
b3e80f5c32
Updated README.md and framework.php
2015-02-13 12:09:12 +01:00
Mikael Nordfeldth
6620ad793a
Deja vu of user->getProfile() from 4f9b70d
2015-02-13 11:55:37 +01:00
Mikael Nordfeldth
4f9b70d51f
Profile expected in Notice::asActivity from UAS
2015-02-13 11:41:21 +01:00
Mikael Nordfeldth
a063bb43a8
EndSetApiUser will always contain a User
2015-02-13 01:19:59 +01:00
Mikael Nordfeldth
2f86cd8602
utf8mb4 conversion on database with index adjusts
2015-02-12 18:18:55 +01:00
buttle
2a0a0287d4
Added EVENT to homestubnav
...
Changed menu->submenu(). if (! $menu->getItems()) then do nothing
2015-02-10 19:20:01 +01:00
Mikael Nordfeldth
c6b1b3e5e3
Merge commit 'refs/merge-requests/30' of https://gitorious.org/social/mainline into merge-requests/30
2015-02-08 23:19:53 +01:00
Mikael Nordfeldth
4c9a74cb12
ROLLBACK which may or may not be useful
...
There were problems with queries that were executed but didn't seem to
be committed. Trying to patch that up by calling a ROLLBACK on transactions
where the loading of the page isn't stopped after the BEGIN statement's
intended function fails (like with the rememberme cookie in this commit).
2015-02-08 11:09:19 +01:00
Mikael Nordfeldth
a89e91da79
By default, don't allow nick changes for profiles
...
This goes for both users and groups, since they share nickname namespace.
If you want to enable nickname changes, just add this to your config:
$config['profile']['changenick'] = true;
This commit should cover all changes in our usual web forms as well as through
the API.
2015-02-04 21:25:14 +01:00
Mikael Nordfeldth
5155854339
HTMLOutputter input element can take arbitrary attributes now
2015-02-04 20:52:10 +01:00
Mikael Nordfeldth
f0a707cfc6
A single user instance also has the same URLs as multiuser instances
2015-02-04 16:47:43 +01:00
Mikael Nordfeldth
6a4cb43f67
showstream for singleuser instance too
...
singleuser instances shouldn't be too special and have too many
alternative methods of doing stuff.
2015-02-03 22:33:01 +01:00
Mikael Nordfeldth
660e8c6efc
Fave::addNew now calls Notice::saveActivity
...
as a bonus we've fixed several FIXME issues for favorite email notification
and updated parts of the codebase for these activities to a more modern style.
2015-02-03 16:34:11 +01:00
Mikael Nordfeldth
e41d324a53
NoticeStream already handles "getNotices"
2015-02-03 12:12:11 +01:00
Mikael Nordfeldth
40416c2c69
Don't email users who are sandboxed
...
If sandboxed or silenced, don't email the user any notifications.
2015-02-03 11:41:20 +01:00
Mikael Nordfeldth
fdae6f0fb3
neo-gnu is now default-theme. perty.
2015-02-02 18:22:59 +01:00
Mikael Nordfeldth
f05f701764
HTML5 placeholder for notice input form.
2015-02-01 21:35:25 +01:00
Mikael Nordfeldth
c7dd595984
Run onEndSetApiUser also when already logged in!
2015-01-31 16:02:01 +01:00
Mikael Nordfeldth
4c14794cae
ApiTimelineNetworkPublicAction available now
...
Feeds added in NetworkpublicAction too.
2015-01-29 23:01:53 +01:00
Mikael Nordfeldth
dfdfe4143a
Set siteprofile default values for config public/localonly
2015-01-29 20:49:19 +01:00
Mikael Nordfeldth
4daa2e4644
Use 'StartpageAction' to determine what to show on /
2015-01-29 20:48:49 +01:00
Mikael Nordfeldth
a5d27d9ce7
/main/all will give a network-wide public stream
...
Qvitter had implemented this as a "PublicAndExternal" stream, but
I figured we might as well put it into the GNU social core.
2015-01-28 20:25:39 +01:00
Mikael Nordfeldth
eaaef2aec9
'zone' is a valid top domain
...
We should get another form of URL identifier for interpreting links on notices...
It was hard editing this line in vim even, because of wide, multibyte characters...
2015-01-27 15:07:00 +01:00
Mikael Nordfeldth
cc996f58db
Test in Ostatus_profile if avatar is an image before writing to filesystem
...
This clears one FIXME...
We also fix HTTPClient::quickGet() (and a related call in OStatus testfeed.php).
2015-01-27 14:00:39 +01:00
Mikael Nordfeldth
bcb6dadc9f
Corrected message in NoSuchGroupException
2015-01-27 13:37:35 +01:00
Mikael Nordfeldth
d140e135c0
Default textlimit for notices is now 1000 chars
2015-01-26 23:32:08 +01:00
Mikael Nordfeldth
67d09532dd
Improved animated image thumbnail freedom of choice
...
Default is now to take still thumbnails of animated GIFs and then
show them as originals in an AttachmentListItem. The still frames
are mostly used with front-ends like qvitter.
2015-01-26 16:33:39 +01:00
Mikael Nordfeldth
97812549b9
Unnecessarily spammy logs for getThumbnail()
...
When trying to create thumbnails for remote media that don't have the
filename field set, we got a lot of output in the debug log.
2015-01-26 01:16:28 +01:00
Mikael Nordfeldth
a8e613e508
Animated GIF restructuring, ImageMagick only used for resizing animated sequences.
2015-01-25 23:00:00 +01:00
Mikael Nordfeldth
2a7d45c986
No need for ImageMagick to detected animated GIF
2015-01-25 22:45:25 +01:00
Mikael Nordfeldth
4dd6d7869e
Maybe we can detect animated files in core
2015-01-25 22:11:46 +01:00
Mikael Nordfeldth
2b62077fc1
1.1.3-beta2
2015-01-25 02:43:29 +01:00
Mikael Nordfeldth
a9135080c3
barename wasn't used, let's rename it filename and use it
2015-01-25 02:27:02 +01:00
Mikael Nordfeldth
2dd1f3fe67
Default value for max thumbnail size increased
...
Because people have high resolution screens nowadays ;)
2015-01-23 15:04:54 +01:00
Mikael Nordfeldth
015e95829b
MediaFile->getFile() instead of accessing fileRecord
2015-01-23 14:46:47 +01:00
Mikael Nordfeldth
9f87359d04
Non-ajax file submissions should throw NoUploadedMediaException
2015-01-22 12:38:57 +01:00
Mikael Nordfeldth
964d13792b
ssl_verify_host option in config (default is true)
2015-01-22 12:21:57 +01:00
Mikael Nordfeldth
5c7ad2e031
Added a quickGet in HTTPClient
2015-01-22 12:16:01 +01:00
Mikael Nordfeldth
fac9f4e545
Merge branch 'nightly' of gitorious.org:social/mainline into nightly
2015-01-21 23:45:49 +01:00
Mikael Nordfeldth
9c5aa67a63
Enable AntiBrute by default.
2015-01-21 23:43:04 +01:00
Mikael Nordfeldth
8d7230a2b9
EndCheckPassword should run after Start even if pre-exited
...
StartCheckPassword can exit beforehand either with success or failure,
and we want EndCheckPassword to check for stuff like failed login attempts.
2015-01-21 22:31:05 +01:00
Mikael Nordfeldth
8b585ff647
MediaFile upload simplifying
2015-01-21 17:39:48 +01:00
Mikael Nordfeldth
b2d332c914
These were meant for lower classes
2015-01-18 21:13:52 +01:00
Mikael Nordfeldth
06c93faa2d
PHP BUG??? Cannot figure out why this throws warning
...
I kept getting this on "Quitter España" (which seems to be the name
causing the commotion, as it's part of this sprintf algorithm):
PHP Warning: sprintf(): Argument number must be greater than zero
in /srv/www/vhosts/quitter.es/%/htdocs/lib/action.php on line 1175
I'll just make it quiet for now so it doesn't spam other sites with
UTF-8 characters in their name (if that's what's causing this).
2015-01-18 12:52:33 +01:00
Mikael Nordfeldth
371f4b4874
A bit more readable code.
2015-01-18 01:43:30 +01:00
aroquen
e45c784451
Fix footer in plugins' notices.
...
Make it look like like normal notices. Footer element was missing.
2015-01-17 00:39:07 +01:00
Mikael Nordfeldth
8892702f0c
Initially hide input forms on the top
...
The status input element would attract focus after page load, meaning
if you'd scrolled down a bit then you would be rocketed back up again!
2015-01-16 11:19:22 +01:00
Mikael Nordfeldth
96f30dd924
version push, we've got some HTML/CSS changes
2015-01-16 01:12:19 +01:00
Mikael Nordfeldth
0193c7548f
RSS feed items did not get a type assigned
2015-01-15 21:13:21 +01:00
Mikael Nordfeldth
cbb7ec07a5
When called in offline queue, File::url was HTTP
...
Despite having the site configured "always" for HTTPS, File generated
thumbnails and such with HTTP urls.
2015-01-12 19:19:41 +01:00
Mikael Nordfeldth
c7df5594d0
Simplified by adding an abstract AtompubAction
2015-01-12 03:15:41 +01:00
Mikael Nordfeldth
aca5ff1b23
Found some unreachable code in Favorite
...
The portion after StartAtomPubNewActivity would never be reached since
Favorite handles that activity through ActivityHandlerPlugin nowadays.
So I cleaned it up and followed a couple of paths, making stuff prettier.
2015-01-12 02:23:23 +01:00
Mikael Nordfeldth
773441c2c5
abstract declaration of GroupSection
2015-01-10 01:46:54 +01:00
Mikael Nordfeldth
51f97c7e84
section control over their notice lists + HTML id stuff
2015-01-09 15:46:35 +01:00
Mikael Nordfeldth
a3b9367c9a
new noticelist classes for primary and section lists
2015-01-08 20:19:43 +01:00
Mikael Nordfeldth
5a76390d46
Reuse NoticeList for NoticeSection listing
...
Something smarter than the 'addressees' and 'attachments' booleans etc.
is desired.
2015-01-08 20:07:27 +01:00
Mikael Nordfeldth
5981b5c8d9
CC license fixes (no remote image, https for href)
2015-01-08 18:13:33 +01:00
Mikael Nordfeldth
40412b6b79
status update placeholder removed, javascript not required to post
2015-01-08 18:04:46 +01:00
Mikael Nordfeldth
b2f0595d04
HTML5 + CSS adaptions, may cause visual breaks
2015-01-08 16:42:26 +01:00
Mikael Nordfeldth
d3a8896b2a
Merge commit 'refs/merge-requests/26' of https://gitorious.org/social/mainline into merge-requests/26
2014-12-09 13:45:15 +01:00
Joshua Judson Rosen
238095a719
Parse remote users' fullnames from PoCo::displayName elements
...
Try this first; use activity:subject->atom:title only as a fallback.
The code that output activity:subject was removed 2013-10-08,
and it it was deprecated for years before that....
2014-12-08 21:55:51 -05:00
Mikael Nordfeldth
e7c6c6fc76
Merge commit 'refs/merge-requests/19' of https://gitorious.org/social/mainline into merge-requests/19
2014-12-06 20:18:52 +01:00