Go to file
Miguel Dantas b224d93098 [MEDIA] ImageFile now extends MediaFile and validates images more aggressively.
Default supported files need to use consistent names. Bumped version to 1.20.0

ImageFile has been changed to extend MediaFile and rely on it to partially
validate files. This validation has been extended to not rely solely on
Fileinfo, as it is disabled on some places. Now it'll try to use the shell
command `file`, if Fileinfo isn't available.

ImageFile now converts every new upload to PNG, except JPEG and GIF, which
are kept, but still resized (to the same size), to remove possible scripts
embedded therein.

MediaFile::fromUpload will return an ImageFile if the uploaded file is an image
or a MediaFile otherwise.

MediaFile can be constructed with an id with value -1 to denote a temporary
object, which is not added to the DB. This is useful to create a temporary
object for representing images, so it can be used to rescale them.

The supported attachment array needs to be populated with the result of calling
`image_type_to_extension` for the appropriate image type, in the case of images.
This is important so all parts of the code see the same extension for each image
type (jpg vs jpeg).

Added documentation to classes/File.php and to lib/MediaFile and lib/ImageFile
2019-06-10 00:35:53 +01:00
actions Update /main/version information 2019-06-07 15:02:08 +01:00
classes [MEDIA] ImageFile now extends MediaFile and validates images more aggressively. 2019-06-10 00:35:53 +01:00
db Set default value of datetime columns to CURRENT_TIMESTAMP 2019-04-16 00:43:17 +01:00
doc-src fix a link of doc/twitterapi 2017-05-30 07:23:36 +09:00
DOCUMENTATION [MEDIA] ImageFile now extends MediaFile and validates images more aggressively. 2019-06-10 00:35:53 +01:00
extlib Update PEAR to v1.10.9 and patch it so it works quietly 2019-04-28 23:39:36 +01:00
js Merge branch 'master' of git.gnu.io:gnu/gnu-social into mmn_fixes 2016-03-21 03:10:19 +01:00
lib [MEDIA] ImageFile now extends MediaFile and validates images more aggressively. 2019-06-10 00:35:53 +01:00
locale [THEME] Fix OpenID settings styles 2019-06-09 18:13:04 +01:00
mail-src better indenting in invite email 2011-04-18 13:37:54 -04:00
plugins [OpenID] Added synchronization button and corresponding action 2019-06-09 17:04:26 +01:00
scripts Add option to send email to --all users on sendemail.php script 2018-08-23 23:48:38 +01:00
tests Merge branch 'fixtests' into 'nightly' 2017-04-06 10:23:12 +00:00
theme [THEME] Fix OpenID settings styles 2019-06-09 18:13:04 +01:00
.gitignore Remove from .gitignore stuff that should clearly go to developer's global gitignore instead 2019-04-20 01:50:02 +01:00
apple-touch-icon.png Add apple-touch-icon.png support; favicons for the iPhone OS. 2009-03-16 18:04:27 -04:00
COPYING license block for source code 2008-05-14 15:26:48 -04:00
CREDITS.md [DOCUMENTATION] Move CREDITS to its own file and update list from postActiv 2019-06-05 22:48:29 +01:00
favicon.ico Favicon updated to match new theme images 2014-03-06 13:10:30 +01:00
index.php If $_REQUEST is empty, array_merge == null. 2017-09-10 14:02:16 +02:00
INSTALL.md [DOCUMENTATION] Convert INSTALL to markdown and update the requirements 2019-06-05 22:48:28 +01:00
install.php Either use or don't use HTTPS 2016-02-10 00:57:39 +01:00
Makefile New _m() gettext wrapper with smart detection of plugin domains. Plugin base class registers your gettext files if present at initialization. 2009-12-08 12:17:11 -08:00
README.md [MEDIA] ImageFile now extends MediaFile and validates images more aggressively. 2019-06-10 00:35:53 +01:00

GNU social 1.20.x

(c) 2010-2019 Free Software Foundation, Inc

This is the README file for GNU social, the free software social networking platform. It includes general information about the software and the project.

The file INSTALL.md has useful instructions on how to install this software.

System administrators may find the DOCUMENTATION/SYSTEM_ADMINISTRATORS directory useful, namely:

  • upgrade_from: upgrading from different software
  • CONFIGURE.md: configuration options in gruesome detail.
  • PLUGINS.md: how to install and configure plugins.

Developers may find the DOCUMENTATION/DEVELOPERS directory useful.

About

GNU social is a free social networking platform. It helps people in a community, company or group to exchange short status updates, do polls, announce events, or other social activities (and you can add more!). Users can choose which people to "follow" and receive only their friends' or colleagues' status messages. It provides a similar service to proprietary social network sites, but is much more awesome.

With a little work, status messages can be sent to mobile phones, instant messenger programs (using XMPP), and specially-designed desktop clients that support the Twitter API.

GNU social supports open standards (such as OStatus https://www.w3.org/community/ostatus/) that lets users in different networks follow each other. It enables a distributed social network spread all across the Web.

GNU social was originally developed as "StatusNet" by StatusNet, Inc. with Evan Prodromou as lead developer.

It is shared with you in hope that you too make an service available to your users. To learn more, please see the Open Software Service Definition 1.1: http://www.opendefinition.org/ossd

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program, in the file "COPYING". If not, see http://www.gnu.org/licenses/.

IMPORTANT NOTE: The GNU Affero General Public License (AGPL) has
*different requirements* from the "regular" GPL. In particular, if
you make modifications to the GNU social source code on your server,
you *MUST MAKE AVAILABLE* the modified version of the source code
to your users under the same license. This is a legal requirement
of using the software, and if you do not wish to share your
modifications, *YOU MAY NOT INSTALL GNU SOCIAL*.

Documentation in the /doc-src/ directory is available under the Creative Commons Attribution 3.0 Unported license, with attribution to "GNU social". See http://creativecommons.org/licenses/by/3.0/ for details.

CSS and images in the /theme/ directory are available under the Creative Commons Attribution 3.0 Unported license, with attribution to "GNU social". See http://creativecommons.org/licenses/by/3.0/ for details.

Our understanding and intention is that if you add your own theme that uses only CSS and images, those files are not subject to the copyleft requirements of the Affero General Public License 3.0. See http://wordpress.org/news/2009/07/themes-are-gpl-too/. This is not legal advice; consult your lawyer.

Additional library software has been made available in the 'extlib' directory. All of it is Free Software and can be distributed under liberal terms, but those terms may differ in detail from the AGPL's particulars. See each package's license file in the extlib directory for additional terms.

Refer to COPYING.md for full text of the software license..

Troubleshooting

The primary output for GNU social is syslog, unless you configured a separate logfile. This is probably the first place to look if you're getting weird behaviour from GNU social.

If you're tracking the unstable version of GNU social in the git repository (see below), and you get a compilation error ("unexpected T_STRING") in the browser, check to see that you don't have any conflicts in your code.

Unstable version

If you're adventurous or impatient, you may want to install the development version of GNU social. To get it, use the git version control tool http://git-scm.com/ like so:

git clone git@notabug.org:diogo/gnu-social.git

In the current phase of development it is probably recommended to use git as a means to stay up to date with the source code. You can choose between these branches:

  • master "stable", usually working well
  • nightly "unstable", most updates, not always working as expected

To keep it up-to-date, use git pull. Watch for conflicts!

As in any upgrade, do not forget to run /scripts/upgrade.php.

Further information

There are several ways to get more information about GNU social.