Boris Bobrov [Thu, 12 Jul 2018 10:50:54 +0000 (12:50 +0200)]
always guess the same filetype
Boris Bobrov [Thu, 12 Jul 2018 10:50:37 +0000 (12:50 +0200)]
finally fix url validator
Boris Bobrov [Thu, 12 Jul 2018 05:36:00 +0000 (07:36 +0200)]
Revert "Revert "Import messages in blog views""
This reverts commit
8c36ec5246828e3c99d956edd8524f3ade430571.
Boris Bobrov [Wed, 11 Jul 2018 16:26:23 +0000 (18:26 +0200)]
fix typo
Boris Bobrov [Wed, 11 Jul 2018 15:30:09 +0000 (17:30 +0200)]
fix auth error and simplify url and email checks
Boris Bobrov [Wed, 11 Jul 2018 14:54:08 +0000 (16:54 +0200)]
remove requirement for the file to be with single dot in name
Boris Bobrov [Wed, 11 Jul 2018 14:53:32 +0000 (16:53 +0200)]
fix default gmg help message
Boris Bobrov [Tue, 10 Jul 2018 16:29:30 +0000 (18:29 +0200)]
Merge remote-tracking branch 'gsoc2016/Subtitle-1'
Andrew Browning [Sun, 8 Jul 2018 23:00:52 +0000 (19:00 -0400)]
Fix server crash on blog about page [#5572]
Don't bother checking for user's blog if no user returned.
ĎÚβĨŐÚŚ Dod [Tue, 26 Jun 2018 13:28:29 +0000 (09:28 -0400)]
2 bug fixes in editor views
* `WTForms` instances get `__init__`-ed with `defaults` as `kwargs`.
The first arg is a `request.form` (which is what one must supply if
this is a `POST` and must *not* supply otherwise).
The content of that form (empty on `GET`) has higher priority than
the defaults (which makes the user get an empty form).
* Fix `edit_profile()` to allow changing `location` from a non-blank
value to blank (i.e. removing the location).
(cherry picked from commit
75f3e23b92392b9bd309fab4c1a52fd38d453627)
Boris Bobrov [Fri, 8 Jun 2018 15:46:29 +0000 (17:46 +0200)]
Revert "cap sqlalchemy"
This reverts commit
d803f14361ec02878afe4f6b196ce917010a1e2f.
WTForms 2.2 was releases, see
https://issues.mediagoblin.org/ticket/5570#comment:6
Dpg [Wed, 23 May 2018 14:59:38 +0000 (00:59 +1000)]
Add Creative Commons 4.0 licenses [#955]
Add CC version 4.0 licenses to SORTED_LICENSES.
Boris Bobrov [Mon, 30 Apr 2018 18:26:34 +0000 (20:26 +0200)]
cap sqlalchemy
Closes #5557 and fixes some complaints in irc
Andrew Browning [Sun, 8 Apr 2018 23:49:46 +0000 (19:49 -0400)]
Add moderation panel thumbnail header [#5563]
Add moderation panel column header for thumbnail column.
Andrew Browning [Sun, 8 Apr 2018 23:40:02 +0000 (19:40 -0400)]
Process videos with incorrect date tags [#5409]
Video processing expects datetime tags in a specific format. This
commit allows videos with missing or incorrect datetime tags to be
processed with no datetime tags instead of failing.
Andrew Browning [Wed, 25 Oct 2017 06:33:49 +0000 (02:33 -0400)]
Prevent video plugin from processing svg [#934]
Prior to the gstreamer-1.0 upgrade, the video processing engine included
a check for excluded extensions which gstreamer might accept despite us
not wanting to process them. In commit
91f5f5e, the check against
EXCLUDED_EXT was removed. Since then, the video plugin has accepted and
attempted to process svg files.
This commit adds the check against EXCLUDED_EXTS into the sniff_handler
function so that we can bail out on certain file extensions before the
plugins tries to sniff the file type. The previous implementation
excluded nef files, which appears to be a Nikon camera image. I've
copied that forward to this code. I've also added a log message to
indicate that we're purposefully refusing to process the file.
Andrew Browning [Wed, 4 Apr 2018 19:24:08 +0000 (15:24 -0400)]
Remove backup file added in
b5dd245
Andrew Browning [Mon, 2 Apr 2018 05:34:35 +0000 (01:34 -0400)]
Use https:// instead of git:// to clone [#5551]
This was partially addressed in
eee3e41 but missed many items.
Andrew Browning [Wed, 29 Nov 2017 16:56:22 +0000 (11:56 -0500)]
Add chrysn to AUTHORS
chrysn [Wed, 30 Aug 2017 20:59:32 +0000 (22:59 +0200)]
Fix EXIF rotation to make the image portrait on demand
Closes: https://issues.mediagoblin.org/ticket/5525
Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
Boris Bobrov [Fri, 17 Nov 2017 11:23:12 +0000 (14:23 +0300)]
add alembic migrations to MANIFEST
Alembic migrations do not get imported anywhere. Because of it
they do not get included to the python package. But they need to
be there in order for migrations to succeed.
Boris Bobrov [Tue, 14 Nov 2017 19:01:19 +0000 (22:01 +0300)]
move alembic.ini to python app dir
Boris Bobrov [Tue, 14 Nov 2017 16:22:17 +0000 (19:22 +0300)]
add alembic.ini to MANISFEST.in
Boris Bobrov [Sun, 12 Nov 2017 23:43:25 +0000 (02:43 +0300)]
remove mentions of mediagoblin_local.ini
Boris Bobrov [Sun, 12 Nov 2017 23:38:44 +0000 (02:38 +0300)]
clarify installation instructions about mediagoblin.ini
Romain Porte [Sat, 11 Nov 2017 18:23:31 +0000 (19:23 +0100)]
Added tests for tags in image API object
Romain Porte [Sat, 11 Nov 2017 18:23:30 +0000 (19:23 +0100)]
Added tags in API (view them and edit them)
Romain Porte [Sat, 11 Nov 2017 18:02:12 +0000 (19:02 +0100)]
Improved gitignores for patch submitting
In order to ease the patch submitting process, *.patch was added as per
Linux kernel's .gitignore. Test cache directory was also added in its
own gitignore (as per kernel's recommendation on .gitignore location).
Romain Porte [Sat, 11 Nov 2017 17:29:56 +0000 (18:29 +0100)]
Fixed flake8 errors for tests/test_api.py
Since I am adding a test I also took time to fix all flake8 errors in
this test file, since I may add more tests in there and I prefer to work
on a coherent code base.
Romain Porte [Sat, 11 Nov 2017 17:29:55 +0000 (18:29 +0100)]
Added tests for custom file name using API
This adds a new test and verify that the old test has the
"unknown.<extension>" format. As funny as it seems, the "image/jpeg"
Content-Type will generate a ".jpe" extension but I was expecting a more
common ".jpg" extension. This may be a bug, but this is not the subject
of this patch.
Romain Porte [Sat, 11 Nov 2017 17:29:54 +0000 (18:29 +0100)]
Change API filename upload using custom header
When uploading a file using the API its same is always going to be
'unknown.<extension>', which is not good looking for file urls. This
patch proposes a custom header named 'X-File-Name' that allows to
specify a file name using an API client.
This changeset was tested with a local OAuth1 client.
Boris Bobrov [Sat, 11 Nov 2017 13:05:43 +0000 (16:05 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
Boris Bobrov [Sat, 11 Nov 2017 13:05:02 +0000 (16:05 +0300)]
add Roman to AUTHORS
Romain Porte [Sat, 11 Nov 2017 12:34:59 +0000 (13:34 +0100)]
Replaced /bin/celeryd by /bin/celery in lazycelery
On a fresh clone the celeryd executable is not present. This is because
of the celery version migration to celery 4.x. As per celery's
documentation at http://docs.celeryproject.org/en/latest/whatsnew-4.0.html,
celeryd is no longer shipped in this version.
Andrew Browning [Tue, 31 Oct 2017 15:55:52 +0000 (11:55 -0400)]
Fix location of host-meta.xml file [#5543]
Andrew Browning [Mon, 23 Oct 2017 04:05:37 +0000 (00:05 -0400)]
Fix trivial spelling error in test comment
Simen Heggestøyl [Sun, 8 Oct 2017 09:04:10 +0000 (11:04 +0200)]
Port batchaddmedia command to Python 3
Simen Heggestøyl [Sun, 8 Oct 2017 13:57:38 +0000 (15:57 +0200)]
Make admin panel headers readable in Airy theme
The admin panel headers are white by default, making them almost
unreadable on the light background used in the Airy theme. Make the
headers dark, like text elsewhere in the theme.
Simen Heggestøyl [Sun, 15 Oct 2017 11:33:36 +0000 (13:33 +0200)]
Handle collection in batchaddmedia command
Make the batchaddmedia command look for a 'collection-slug' column, that
for each row may specify the slug of a collection that the media should
be added to. This matches the '--collection-slug' argument of the
addmedia command.
Simen Heggestøyl [Sat, 14 Oct 2017 21:46:17 +0000 (23:46 +0200)]
Support Unicode characters in configuration values
Prior to this commit, using a Unicode character in a configuration
string would result in a `UnicodeDecodeError` being raised. Supporting
Unicode characters is especially useful in user-facing configuration
strings, such as `html_title`.
Simen Heggestøyl [Sun, 15 Oct 2017 11:44:17 +0000 (13:44 +0200)]
Remove dead code in batchaddmedia.py
Remove an unused import and an unused local variable from
batchaddmedia.py.
Andrew Browning [Sun, 8 Oct 2017 20:19:16 +0000 (16:19 -0400)]
Update batchaddmedia csv description docs [5458]
Commit
c0ea2bad changed the expected location column header of csv files
used by the batchaddmedia command from 'media:location' to 'location'.
This change updates the docs to match.
Andrew Browning [Tue, 15 Aug 2017 06:11:06 +0000 (02:11 -0400)]
Fix #5460 - Log IP address for failed login
This patch logs the remote address when a login attempt fails.
Andrew Browning [Wed, 20 Sep 2017 05:39:46 +0000 (01:39 -0400)]
Fix #5517 - Change docs to clone repo using https
Andrew Browning [Wed, 20 Sep 2017 05:02:10 +0000 (01:02 -0400)]
Add unit test for #5524
Add a unit test to verify that the change introduced in
07c535c no
longer resulst in a zero divide error when gps data contains no divisor.
This commit includes a test image created by Andrew Browning. Andrew
Browning dedicates this image to the public domain under the CC0 license.
Andrew Browning [Wed, 20 Sep 2017 04:20:43 +0000 (00:20 -0400)]
Fix #5524 Zero division error in exif.py
This patch implements the safe_gps_ratio_divide function for gps
direction and altitude values to prevent a zero divide error on
malformed GPS data.
ayleph [Thu, 29 Jun 2017 04:49:29 +0000 (21:49 -0700)]
Fix #5514 - Add to Collection causes server error
Re-arrange code to check whether a collection has been selected prior
to checking whether an item already exists in the selected collection.
This fixes a regression introduced in
0f3bf8d.
Andrew Browning [Tue, 15 Aug 2017 06:29:54 +0000 (02:29 -0400)]
Properly escape asterisk in *buntu
ayleph [Wed, 28 Jun 2017 05:45:42 +0000 (22:45 -0700)]
Fix #5513 - Can't delete blog post drafts
Modify the @get_media_entry_by_id decorator to return media regardless
of processing state. Separately modify all view functions that use the
@get_media_entry_by_id decorator to require that the media be in the
processed state, other than for the media_confirm_delete view. This
allows blog post drafts to be deleted without returning a 404. Further,
it adds the ability to delete unprocessed media in the future, which
would be a nice addition to the user processing panel.
Boris Bobrov [Mon, 26 Jun 2017 18:32:56 +0000 (21:32 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
Andrew Browning [Mon, 19 Jun 2017 04:58:21 +0000 (00:58 -0400)]
Apply button_warning style to blog delete buttons
Andrew Browning [Mon, 19 Jun 2017 04:11:29 +0000 (00:11 -0400)]
Fix #830 - Remove exif from blog posts
Boris Bobrov [Sun, 18 Jun 2017 14:08:30 +0000 (17:08 +0300)]
Remove mongodb-related stuff
We dropped mongodb a long time ago
Boris Bobrov [Sun, 18 Jun 2017 10:38:59 +0000 (13:38 +0300)]
Add Robert to AUTHORS
Robert Smith [Sat, 17 Jun 2017 06:03:20 +0000 (02:03 -0400)]
Re #5308 added cascade to blog mediatype
Boris Bobrov [Sat, 10 Jun 2017 09:22:58 +0000 (12:22 +0300)]
Fix tests to reflect that we've moved to amqp
Boris Bobrov [Fri, 9 Jun 2017 22:29:19 +0000 (01:29 +0300)]
move exifread to other dependencies
Boris Bobrov [Fri, 9 Jun 2017 22:25:24 +0000 (01:25 +0300)]
Merge branch 'amqp-switch'
Boris Bobrov [Fri, 9 Jun 2017 22:24:29 +0000 (01:24 +0300)]
Remove upper cap on celery kombu
Also remove kombu from requirements, because celery fetches it anyway
Boris Bobrov [Fri, 9 Jun 2017 20:50:33 +0000 (23:50 +0300)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mediagoblin
Boris Bobrov [Fri, 9 Jun 2017 20:49:24 +0000 (23:49 +0300)]
Switch to rabbitmq by default and in docs
Andrew Browning [Tue, 6 Jun 2017 20:51:05 +0000 (16:51 -0400)]
Add space between words in blog message
Andrew Browning [Wed, 1 Mar 2017 07:02:36 +0000 (02:02 -0500)]
Add register_captcha template hook
Boris Bobrov [Tue, 23 May 2017 08:28:08 +0000 (11:28 +0300)]
Change all tabs to spaces in js file
It's bad to mix them
Boris Bobrov [Wed, 3 May 2017 21:39:19 +0000 (00:39 +0300)]
Remove tinymce from dependencies
I think it was supposed to be used in blogs, but we never got there.
So lets just drop it from requirements in bower.json.
Boris Bobrov [Sun, 2 Apr 2017 22:52:14 +0000 (01:52 +0300)]
Change aria-text when state changes
Boris Bobrov [Sun, 2 Apr 2017 21:23:24 +0000 (00:23 +0300)]
Make play button a button instead of div
More attempts to make mg acessible
Boris Bobrov [Sun, 2 Apr 2017 20:25:56 +0000 (23:25 +0300)]
Add aria attributes to audio player
I hope this helps a bit with mediagoblin accessibility
Boris Bobrov [Sun, 2 Apr 2017 17:50:33 +0000 (20:50 +0300)]
Move audio html out of js
Boris Bobrov [Sat, 1 Apr 2017 18:07:01 +0000 (21:07 +0300)]
Commit session after alembic updates have finished
After alembic updates we need to add foundations. The tables to add
foundations to are created as part of dbupdate process. For some reason
Alembic doesn't commit a session in the end. Because the session is not
commited, the tables do not really get created. And because of that,
foundations fail.
The solution is to commit the session after alembic updates.
Boris Bobrov [Sat, 4 Mar 2017 07:58:48 +0000 (10:58 +0300)]
Pass connection to EnvironmentContext.configure
In https://bitbucket.org/zzzeek/alembic/issues/419/ we were suggested
use connection instead of engine. This should fix an issue reported
via ml.
Andrew Browning [Wed, 1 Mar 2017 06:33:38 +0000 (01:33 -0500)]
Fix trivial spelling and spacing error in cli help
Andrew Browning [Tue, 14 Feb 2017 06:01:48 +0000 (01:01 -0500)]
Fix #5500 UnicodeEncodeError in atom feed
This simple fix allows unicode strings in the atom feed thumb and
description fields by forcing the entire atom content string to
unicode.
vijeth-aradhya [Fri, 20 Jan 2017 03:46:42 +0000 (09:16 +0530)]
edit_profile.html: Consistency in the width of input fields
The width of all the input fields in user profile edit
form (also forms which wtforms render div function) is 100%
Fixes #996
Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
Boris Bobrov [Sun, 29 Jan 2017 16:29:39 +0000 (19:29 +0300)]
Headers for collection items
Fixes issue #776
Boris Bobrov [Sun, 29 Jan 2017 16:11:59 +0000 (19:11 +0300)]
Add Stéphane Péchard to authors
Boris Bobrov [Sun, 29 Jan 2017 16:09:06 +0000 (19:09 +0300)]
Merge remote-tracking branch 'spechards-mediagoblin/master'
Conflicts:
mediagoblin/submit/lib.py -- happened because of creator->actor
change
Fixes issue #915
vijeth-aradhya [Fri, 20 Jan 2017 06:26:01 +0000 (11:56 +0530)]
oob.html: Removed line breaks around the verifier code
There was an extra space that was displayed after
the verfication code which caused verification to
fail when just copied. Hence, any line breaks or
spaces has been removed
Fixes #5476
Boris Bobrov [Sun, 29 Jan 2017 14:16:00 +0000 (17:16 +0300)]
Add Varadhya to AUTHORS
vijeth-aradhya [Sun, 22 Jan 2017 18:27:16 +0000 (23:57 +0530)]
post_comment.js, media.html: Add AJAX for posting comments
Stop reloading the page when a comment is posted which helps
in not stopping the media being played (for example, a song)
Fixes https://issues.mediagoblin.org/ticket/868
Andrew Browning [Mon, 17 Oct 2016 16:51:36 +0000 (12:51 -0400)]
Fix #5484 - Add video icon to collection thumbnail
ayleph [Wed, 3 Feb 2016 04:14:57 +0000 (23:14 -0500)]
Add media_titleinfo template hook
This patch is based on work by cmichi to add a template hook near the
media title section of the page. I rearranged the code in the original
patch to match the current media.html page.
Ben Sturmfels [Mon, 14 Nov 2016 01:46:46 +0000 (12:46 +1100)]
Merge branch '975-spanish-translation', fixes #975.
Thanks to teraflops for this contribution.
Ben Sturmfels [Sat, 12 Nov 2016 22:48:54 +0000 (09:48 +1100)]
Fix minor grammar issues in contributing docs; add new contributor.
Alexandre Franke [Thu, 3 Nov 2016 19:19:47 +0000 (20:19 +0100)]
Add links in site-admin documentation foreword
Fixes #5490
Ben Sturmfels [Sat, 12 Nov 2016 22:26:54 +0000 (09:26 +1100)]
Update contributor names.
Ben Sturmfels [Sat, 12 Nov 2016 22:21:05 +0000 (09:21 +1100)]
Merge branch 'thumbnail', fixes #592.
Ben Sturmfels [Sat, 12 Nov 2016 22:20:37 +0000 (09:20 +1100)]
Merge `white-space` change into main `.media_thumbnail` class.
Andrew Browning [Fri, 4 Nov 2016 06:46:53 +0000 (02:46 -0400)]
Apply consistency & PEP8 to atom feeds
This patch applies the atom feed thumbnail changes from
65d8ca7 to user
atom feeds and rearranges the code in both views for better consistency
with PEP8 and with each other. It also fixes a spacing issue with the
feed title on the main page.
Ben Sturmfels [Fri, 7 Oct 2016 12:12:25 +0000 (23:12 +1100)]
Add thumbnail image to Atom feed.
Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
Andrew Browning [Sun, 23 Oct 2016 19:41:40 +0000 (15:41 -0400)]
Add kesara to list of AUTHORS
The changes applied in
7ee8e6b were written by kesara.
Andrew Browning [Sun, 23 Oct 2016 19:32:25 +0000 (12:32 -0700)]
Fix #664 - Text overflow in media headings
Merge in kesara's changes to fix the media heading overflows on edit
and delete pages for ticket #664.
Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
Andrew Browning [Mon, 17 Oct 2016 00:11:56 +0000 (20:11 -0400)]
Fix typo in user processing panel
Thanks to Storm_dragon for reporting this typo.
Olivier Mehani [Fri, 16 Sep 2016 12:32:51 +0000 (22:32 +1000)]
Update maps copyright notice to OSM
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Olivier Mehani [Wed, 31 Aug 2016 12:20:53 +0000 (22:20 +1000)]
Use OSM tiles in Geolocation plugin #5466
MapQuest recently disabled free-as-in-beer access to their map tiles, so let's
switch to free-as-in-speech images.
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Ben Sturmfels [Sat, 17 Sep 2016 14:48:32 +0000 (00:48 +1000)]
Spell-check the entire documentation.
Boris Bobrov [Fri, 16 Sep 2016 06:47:54 +0000 (09:47 +0300)]
Merge branch 'panel'
Boris Bobrov [Fri, 16 Sep 2016 06:46:59 +0000 (09:46 +0300)]
Add Dealsy to core reviewers
Boris Bobrov [Fri, 16 Sep 2016 06:30:58 +0000 (09:30 +0300)]
Added Josh Crompton to authors list
Josh Crompton [Mon, 15 Aug 2016 01:34:52 +0000 (11:34 +1000)]
Add padding around form field labels
Fixes #5468