Wykres commitów

855 Commity (14ea5c1b13d2f0081c17ca98145828ad71c3adb2)

Autor SHA1 Wiadomość Data
Marnanel Thurman 52753c37d5 Added contribution guide and overview to docs 2019-10-04 17:44:51 +01:00
Marnanel Thurman 8da826e1e3 kepivenv -> kepienv 2019-10-03 01:02:01 +01:00
Marnanel Thurman 2127a65212 fix link in README 2019-10-02 23:36:26 +01:00
Marnanel Thurman 361657a18d actually that was a daft idea; stick to markdown 2019-10-02 23:35:47 +01:00
Marnanel Thurman 5d43527ed6 Add installation guide, and rewrite README 2019-10-02 23:34:59 +01:00
Marnanel Thurman 43361fbe69 README in rst, not md 2019-10-02 23:33:13 +01:00
Marnanel Thurman 849ceb7cf2 add "localhost" to default settings so users can test easily 2019-10-02 23:32:16 +01:00
Marnanel Thurman d2a4b01aee add gunicorn to requirements 2019-10-02 23:23:30 +01:00
Marnanel Thurman 131c2cb3ea Added celery (with specification for version > 4.0.0), and pillow, to requirements.txt 2019-10-02 23:04:40 +01:00
Marnanel Thurman 2849c139cb Add standard headers in middleware.
Closes issue 28.
2019-09-30 21:21:34 +01:00
Marnanel Thurman 5e4e5462c9 Add "Link" header to actor views.
Partial fix for issue 28.
2019-09-30 20:58:08 +01:00
Marnanel Thurman 52dbd81059 Tests for "last" in OrderedCollections, and charset in Content-Type
(i.e. tests for commit a93e04).
2019-09-27 19:23:37 +01:00
Marnanel Thurman d56a076b22 Include attributedTo param on local notes (you can't make up
anonymous notes any more).

Don't specify an id for local notes, or create() gets confused.
create() used to notice this and remove that field, but there were
too many false positives. So now we do it one step downstream.
2019-09-27 19:21:36 +01:00
Marnanel Thurman 66cd9f2d5b create_local_note() requires an "attributedTo" param so it can
set it on the Create as well as the Note.
2019-09-27 19:19:50 +01:00
Marnanel Thurman a93e04ed3a Default @context is set on KepiView JSON output, if it isn't supplied.
Content-Type header includes charset=utf-8.

OrderedCollection has a "last" if it has a "first".
2019-09-27 19:18:06 +01:00
Marnanel Thurman d32158e7b9 create() can't create anything but Items. It was previously
restricted not to create Activities, but you could (for example)
create Actors.
2019-09-27 19:12:16 +01:00
Marnanel Thurman 9b05501ac1 A note isn't a reply even it has inReplyTo, if that's None! 2019-09-27 19:11:33 +01:00
Marnanel Thurman 865ddb5f87 Changes to the activity_form of an actor:
- preferredUsername set automatically
  - "tags" corrected to "tag"
  - "header" corrected to "image"
  - key id is based on the actor's url, not their local id.
  - actors have no publication date

Also, save after setting public/private key on an actor.
2019-09-27 19:08:49 +01:00
Marnanel Thurman 9e6ee69d32 Removed a couple of "using_commandline_names" params that should have gone with commit a1bad9b7. 2019-09-21 22:17:34 +01:00
Marnanel Thurman 6e1292a508 kepi-list --all 2019-09-21 22:10:08 +01:00
Marnanel Thurman 48739886c3 Defaults added to activity_form of AcItems.
Default language set to "en" rather than "en-gb" to avoid scaring other Fediverse code.
2019-09-21 18:16:23 +01:00
Marnanel Thurman e458480c08 kepi-show lists the objects of the user's Create activities,
rather than the objects attributedTo that user.
2019-09-21 17:40:15 +01:00
Marnanel Thurman acde4afff8 AcObjects no longer set @context on their own activity_form. 2019-09-21 17:38:08 +01:00
Marnanel Thurman dce4946f02 Fix wrong param in debug message for kepi-delete 2019-09-21 17:34:28 +01:00
Marnanel Thurman 32d2d1aaa0 kepi-post: cc and to arguments for public posts were reversed. Fixed. 2019-09-21 17:28:19 +01:00
Marnanel Thurman 2ab6a9fbe1 Removed debug code which shouldn't have been left in anyway 2019-09-21 17:27:55 +01:00
Marnanel Thurman d6dd9103c1 removed tests/examples; they're not tests. Added "examples" to .gitignore (local copy).
Also, added "static" to .gitignore.
2019-09-21 17:18:24 +01:00
Marnanel Thurman fad1aff083 Media upload settings in settings 2019-09-21 17:09:30 +01:00
Marnanel Thurman 460dbd2d59 Fix error handling for commandline requests for commands that don't exist. 2019-09-21 17:08:51 +01:00
Marnanel Thurman 276994c3ea Tests for kepi-post. 2019-09-21 16:57:22 +01:00
Marnanel Thurman f89b375bb1 Followers/following views look users up by short_id (and thus actually work) 2019-09-21 16:56:45 +01:00
Marnanel Thurman 515fc82417 fixme on settings 2019-09-21 16:56:10 +01:00
Marnanel Thurman c550992bbf If you set a local URL as a property on an AcObject, and it can be represented with a short_id, it will be. 2019-09-21 16:55:11 +01:00
Marnanel Thurman b7e0d2e182 find.is_short_id() so we're not checking for short_ids in dozens of places. 2019-09-21 16:54:18 +01:00
Marnanel Thurman a1bad9b7d2 Remove create()'s "using_commandline_names" parameter because it's obsolete.
This stuff is done in the management commands themselves.
Also removed d_k/commandviews.py and its tests, for the same reason.
2019-09-21 16:53:01 +01:00
Marnanel Thurman 9c8fc7a437 Test for kepi-users.
Partial fix for issue 26.
2019-09-20 22:45:20 +01:00
Marnanel Thurman 6dab39d943 Don't print an error when no actor's specified, if the current command doesn't need an actor! 2019-09-20 22:44:41 +01:00
Marnanel Thurman ebf0d03032 KepiManager's filters for local objects only also take account of local users 2019-09-20 22:44:08 +01:00
Marnanel Thurman 6642b21499 A few more fixups which didn't make it into commit 1c05ce62.
Mostly logging stuff, but the tests should have caught it anyway :/
2019-09-16 23:24:52 +01:00
Marnanel Thurman 1c05ce625d The id field in local AcActors now consists of "@" plus the username.
This is similar to what we did in b76404, but specifically for AcActors.
The reasoning behind it is identical.

The f_preferredUsername field is thus removed; preferredUsername
should be stored in ThingField when it's needed.

Added some logging to webfinger.
2019-09-16 23:18:25 +01:00
Marnanel Thurman f869198108 create() stops policing whether new objects do or don't have an "id"
field, based on their is_local status. The views should be doing that,
anyway.
2019-09-16 23:14:29 +01:00
Marnanel Thurman 1cec285208 add URL_REGEXP and SERIAL_NUMBER_REGEXP to d_k/__init__ 2019-09-16 23:14:11 +01:00
Marnanel Thurman d9beebe8ad Changed JSON encoding to use DjangoJSONEncoder. AcObject.published is writeable.
DjangoJSONEncoder can encode dates, so it's more useful than json.dumps.
Created d_k/utils.py for a convenience function as_json() to do that.

AcObject.published becomes writeable because remote objects need to
have their own published dates, not the date they arrived on our server.
2019-09-13 23:22:51 +01:00
Marnanel Thurman d60b366af7 rm a whole lot of code that was accidentally copied over from kepi-show 2019-09-13 23:21:29 +01:00
Marnanel Thurman 9c3c792077 AcObjects gain a "published" datestamp
(which they should relly have had ages ago)
2019-09-13 23:00:46 +01:00
Marnanel Thurman e872c1bab1 wrong variable in debug logging 2019-09-13 22:59:30 +01:00
Marnanel Thurman 0aa5e5155a add slash prefix when searching by number 2019-09-13 22:59:14 +01:00
Marnanel Thurman 7e717894fe kepi-show puts @ before usernames, and doesn't special-case display of lists shorter than 2 members 2019-09-13 22:34:10 +01:00
Marnanel Thurman 90d682c01c The new KepiManager class had "find" where it should have had "filter". 2019-09-13 22:31:08 +01:00
Marnanel Thurman b76404ea1c New convention for the primary key of AcObject.
Previously, all AcObjects had an 8-digit number as the primary key;
remote objects also had their URL in the "remote_url" field, and
local objects had a null in that field.

Now, all AcObjects have a string as their ID. Local objects have
a nine-character string: the first character is a slash and the
rest is the eight-digit code as before. Remote objects have a URL
which does not begin with a slash.

Remote objects no longer have eight-digit IDs, but nobody used
those anyway.

The "active" field on AcObjects was also unused and is hereby withdrawn.
2019-09-13 22:26:48 +01:00