| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
This probably broke stuff
|
| |
| |
| |
| |
| |
| |
| | |
Currently, webm_video is still the higher priority in media_fetch_oder
as older versions should not be broken. So, webm_480p (main_task)
will be rendered by default for newer versions.
All tests pass at this point.
|
|\ \ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
This simple fix allows unicode strings in the atom feed thumb and
description fields by forcing the entire atom content string to
unicode.
|
|/
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Reformat add_message function calls for consistency and PEP8 line
continuations.
|
|
|
|
|
| |
Change the comment ID behaviour and source of user_pages/report.html
to match user_pages/media.html as of #5376.
|
|
|
|
|
|
|
|
| |
This shouldn't really effect much but it is a needed change for the future
this changes the Notification.object_id to be the ID of the Comment (the link
table to the comment object) rather than TextComment (the comment object itself).
This is needed as now comments can be other things, other than TextComment.
|
|
|
|
|
| |
Class User doesn't have field `uploader` any more, instead there
`actor`. Fix several uses of `uploader` to `actor`.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new Comment link table that is used to link between some
object and then the comment object, which can be more or less any
object in Mediagoblin. The MediaComment has been renamed to
TextComment as that more aptly describes what it is. There is
migrations for these changes.
There is also the conslidation of the Report tables into a single
Report table, the same with the Notification objects. This is because
both of them split out MediaEntry and Comment versions into their own
polymorphic versions from a base, this is no longer a meaningful
distinction as comments can be anything.
|
|
|
|
|
|
|
|
| |
This adds several things, mainly code which checks for the public id and
if it doesn't exist generating it where it can. This is to because we
need to keep the public_id to be able to effectively soft delete models.
This also adds a public_id field to the Activity along with a migration.
|
|
|
|
|
|
|
| |
- Adds a "type" column to the Collection object and allows the
CollectionItem model to contain any object.
- Changes "items" to "num_items" as per TODO
- Renames "uploader", "creator" and "user" to a common "actor" in most places
|
|
|
|
|
|
|
| |
The code base had many references to User.username and other
specific to LocalUser attributes as that was the way it use to exist.
This updates those to query on the generic User model but filtering
by attributes on the LocalUser.
|
|
|
|
|
|
|
| |
WTForms documentation:
> The TextField alias for StringField is deprecated.
Signed-off-by: Berker Peksag <berker.peksag@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The .activity ForeignKey on several models such as MediaEntry expects
a ActivityIntmediatory ID not an Activity ID however in submit code the
activity attribute was being set the Activity, simply removing this
assignment should fix the issue as everything is set correctly at this point.
I have also moved the creation of the activity above the processing of media
to avoid race conditions.
|
|\
| |
| |
| |
| |
| | |
Add Activity and Generator models which allow for
activities to be created. This now works with the
feed API.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
This adds betters upport for targets in the content generation
and on the model itself. Adding getters for properties which would
otherwise require looking up e.g. get_author.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This creates the Activity and Genrator models from the Activity
Streams spec and. I then created a migration which retro-actively
create activities for media uploaded and comments created. Through
out the code I've added so automatically activties are created when
a user peforms an action (uploading media, commenting, etc.).
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Has some issues, will iteratively fix!
Conflicts:
mediagoblin/gmg_commands/__init__.py
mediagoblin/gmg_commands/deletemedia.py
mediagoblin/gmg_commands/users.py
mediagoblin/oauth/views.py
mediagoblin/plugins/api/views.py
mediagoblin/tests/test_api.py
mediagoblin/tests/test_edit.py
mediagoblin/tests/test_oauth1.py
mediagoblin/tests/test_util.py
mediagoblin/tools/mail.py
mediagoblin/webfinger/views.py
setup.py
|
| | |
|
| |
| |
| |
| | |
Replaced Required with InputRequired.
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
into metadata
Conflicts:
mediagoblin/plugins/metadata_display/templates/mediagoblin/plugins/metadata_display/metadata_table.html
|
| | | |
|
| |/ |
|
| | |
|
|/
|
|
| |
I will be switch to use ``from __future__ import unicode_literals`` later.
|
|
|
|
|
|
|
|
| |
Since the media template name gets swapped out for each media
type, normal context hooks don't work if you want to affect all
media displays. This gives a general purpose hook.
This commit sponsored by Kẏra. Thanks! :)
|
|
|
|
|
|
| |
Since the Gsoc the use of decorators has simplified this function.
Reintroduce the same code as before Adidits blog branch made these
changes.
|
|
|
|
|
| |
there is no user.is_admin anymore. Adapt to use the new privileges
system.
|
|\
| |
| |
| |
| |
| | |
Conflicts:
mediagoblin/templates/mediagoblin/base.html
mediagoblin/templates/mediagoblin/user_pages/user.html
|
| |\ |
|
| |\ \ |
|
| |\ \ \ |
|
| |\ \ \ \ |
|
| | | | | | |
|
| | | | | | |
|