Marnanel Thurman
e7c36ffb64
create() relies on the Follow object to send the "followed" signal, rather than doing it itself
2020-10-24 23:19:46 +01:00
Marnanel Thurman
9e52df11ff
Status gains "send_signal" in the same way as in commit 9008d1df
2020-10-24 23:17:13 +01:00
Marnanel Thurman
9008d1df3c
Follow's save() and delete() methods gain a "send_signal" param, defaulting to False
2020-10-24 23:10:39 +01:00
Marnanel Thurman
fe12ccbf22
auto_follow=False on test user to simplify debugging
2020-10-24 23:10:18 +01:00
Marnanel Thurman
e9cb4ff574
the problem was that one of the tests created Follows in the actual test,
...
which previously didn't send signals but now did, and the LocalPersons
it had created had auto_follow=True. So we accidentally fixed a test breakage
we didn't know about.
Still some issues to resolve here.
2020-10-23 22:27:30 +01:00
Marnanel Thurman
3486194d90
right, this should work
2020-10-23 22:17:04 +01:00
Marnanel Thurman
a1e2f92f17
version bump for dillian
2020-10-23 21:56:19 +01:00
Marnanel Thurman
ba27b594a2
Deserialisation methods were split between sombrero_sendpub.fetch() and bowler_pub.create(). They're now all in create().
...
Tests updated.
test_announce filled in and made to pass. Closes issue #45 .
2020-10-19 16:54:22 +01:00
Marnanel Thurman
b6d5039f6c
rename url to remote_url per policy
2020-10-19 16:52:43 +01:00
Marnanel Thurman
0259daf3ed
"url" param of trilby's Person renamed to "remote_url" per policy; "status" field or attribute removed in both Person subclasses.
...
It was getting too confusing to store people who don't exist in Person. See sombrero's Failure for where they went.
2020-10-19 16:51:11 +01:00
Marnanel Thurman
f480aa71d0
Trilby tests: rename url to remote_url, per policy.
...
Also add @httpretty.activate where needed.
2020-10-19 16:49:27 +01:00
Marnanel Thurman
5d6c209fde
Collection ends iteration gracefully if a page can't be found.
...
Also renamed __init__'s url param to remote_url, per policy.
2020-10-19 16:48:39 +01:00
Marnanel Thurman
ee8c5fa285
If your test uses create_remote_person with auto_fetch=True, it gets ValueError if the fetch fails.
...
This is because the fetch shouldn't fail-- we *just* mocked something at that address. So if it fails, you set up your test case wrongly.
2020-10-19 16:46:36 +01:00
Marnanel Thurman
4eabf2dd1a
sombrero gains "Failure" model to record HTTP failures
2020-10-19 16:22:14 +01:00
Marnanel Thurman
71f5186d7f
corrected "log.warning" to "logger.warning"
2020-10-19 16:20:22 +01:00
Marnanel Thurman
bb67a18112
Where an identifier of a remote object is called "url", rename it to "remote_url".
...
We were calling it "url" in some places and "remote_url" in others.
2020-10-19 16:17:58 +01:00
Marnanel Thurman
d2fda1e974
Only local accounts can receive Notifications. Closes issue #43 .
...
As part of this, remove the previously undiscovered ability to send Accepts for remote users!
2020-10-11 15:46:06 +01:00
Marnanel Thurman
d3c0663a96
LocalPerson gains "featured" attribute. Bowler gains FeaturedView.
...
Tests updated. Closes issue #41 .
2020-10-11 15:36:58 +01:00
Marnanel Thurman
265f863746
test to demonstrate that featured collections are broken (see issue #41 ).
...
Test object in test_views renamed "Tests" per my own style guide.
2020-10-11 15:07:17 +01:00
Marnanel Thurman
90e815f888
Version bump to 0.4.5 "archer"; various bits of package metadata changed
2020-10-10 02:54:36 +01:00
Marnanel Thurman
7f3a4a04ff
MANIFEST.in includes markdown and images in docs/
2020-10-10 02:54:13 +01:00
Marnanel Thurman
df35f1c389
Sombrero notifies remote users when a local status is posted.
...
Closes issue #42 .
2020-10-10 02:17:05 +01:00
Marnanel Thurman
9d679815a6
trilby_api.models.Status gains "is_local" for symmetry with Person.
...
Tests updated.
2020-10-10 02:16:31 +01:00
Marnanel Thurman
e4556225da
Regression test for issue #42 . Currently fails because that bug is open.
2020-10-10 01:57:17 +01:00
Marnanel Thurman
1d4b0f957a
Creating a Status causes trilby_api.signals.posted to be sent.
...
The signal isn't currently received by anything.
2020-10-09 15:04:51 +01:00
Marnanel Thurman
e2565849d8
Creating a new TrilbyUser (e.g. using Django's "createsuperuser") automatically creates a new LocalPerson for that user.
...
Closes issue #18 .
2020-10-09 03:26:15 +01:00
Marnanel Thurman
c21047f2a9
test fixed to expect the shared inbox to be called /sharedInbox and not /inbox.
...
It was broken by commit 13ff6ba6
.
2020-10-09 03:13:59 +01:00
Marnanel Thurman
577be40042
16x16 icon for the-federation.info
2020-10-03 01:11:31 +01:00
Marnanel Thurman
85c40b4971
pngcrush
2020-10-03 01:11:20 +01:00
Marnanel Thurman
895646740f
rm old icon
2020-10-03 01:05:23 +01:00
Marnanel Thurman
8833f3a5f5
note about the magazine
2020-10-02 22:55:00 +01:00
Marnanel Thurman
ef35989525
hat-person is a jpg
2020-10-02 22:53:53 +01:00
Marnanel Thurman
048eacde36
docs/name.md
2020-10-02 22:52:32 +01:00
Marnanel Thurman
6a69a22bde
update installation documentation, and note about bowler-heavy
2020-10-02 22:29:20 +01:00
Marnanel Thurman
fec31acb4c
updated README.md
2020-10-02 22:01:24 +01:00
Marnanel Thurman
57e780e4c8
Hat person
2020-10-02 21:37:00 +01:00
Marnanel Thurman
3d8a55f485
Roadmap, such as it is
2020-10-02 21:34:48 +01:00
Marnanel Thurman
651d9bb363
fix markdown header syntax
2020-10-02 21:25:01 +01:00
Marnanel Thurman
9344b54f59
modules.md
2020-10-02 21:23:06 +01:00
Marnanel Thurman
7f1c93c431
Update kepi.[pn|sv]g to the new hat-and-heart logo.
...
Add a slightly tweaked version of the original snake picture.
2020-10-02 21:06:04 +01:00
Marnanel Thurman
4dcb6a4e61
rm a lot of Sphinx stuff
2020-10-02 20:59:00 +01:00
Marnanel Thurman
13ff6ba639
SHARED_INBOX_LINK set to '/sharedInbox' because that's what urls.py is expecting
2020-09-30 16:26:21 +01:00
Marnanel Thurman
c9ad177220
Added top-level exception handler to InboxView, since it seems to be experiencing difficulties.
...
Really this needs to be a more general solution.
2020-09-30 16:20:22 +01:00
Marnanel Thurman
ceed10b278
DEBUG=False by default!
2020-09-30 16:14:48 +01:00
Marnanel Thurman
b5a7f7114d
Attempts to fetch(None) get None.
...
It sometimes happens in the wild that someone submits "inReplyTo: null" or similar.
2020-09-30 16:13:02 +01:00
Marnanel Thurman
3d38c6618a
Replaced the "requested" flag in Follow with an "offer" field which holds the ID of the follow request.
2020-09-30 15:44:16 +01:00
Marnanel Thurman
9d8f4613d4
When trilby_api hears about a follow request, and the person being
...
followed has "auto_follow" turned on, the request is automatically
granted. If the follower is remote, they automatically get sent an
Accept activity. This fixes a regression.
As part of this, bowler_pub.create() now sends the ID of the Follow
activity through the signal.
Also, trilby_api.receivers now uses sensible renames for the
"sender" parameters-- they're really the activities which caused
the signal.
2020-09-28 17:08:15 +01:00
Marnanel Thurman
3a1a5f6db2
Remote users following local users causes the "followed" signal
2020-09-28 16:30:58 +01:00
Marnanel Thurman
dbc5e47b4b
Messages posted to user inboxes, and to the shared inbox, will be acted upon.
...
Closes issue #37 .
2020-09-21 18:10:34 +01:00
Marnanel Thurman
4982c4daed
Two tests in test_create were attempting to resolve "somewhere.example.com"
...
(and failing, obviously). This should have been mocked but wasn't.
This need some deeper investigation so I've @skip()ped them for now.
(One of the tests was previously @expected_failure.)
2020-09-21 18:09:10 +01:00