forked from mirrors/bookwyrm
Updates activitpub and tests for discoverability
This commit is contained in:
parent
16994908d8
commit
3e75253ff1
5 changed files with 7 additions and 3 deletions
|
@ -30,5 +30,5 @@ class Person(ActivityObject):
|
|||
icon: Image = field(default_factory=lambda: {})
|
||||
bookwyrmUser: bool = False
|
||||
manuallyApprovesFollowers: str = False
|
||||
discoverable: str = True
|
||||
discoverable: str = False
|
||||
type: str = "Person"
|
||||
|
|
|
@ -103,7 +103,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
|||
last_active_date = models.DateTimeField(auto_now=True)
|
||||
manually_approves_followers = fields.BooleanField(default=False)
|
||||
show_goal = models.BooleanField(default=True)
|
||||
show_in_directory = models.BooleanField(default=False)
|
||||
discoverable = fields.BooleanField(default=False)
|
||||
|
||||
name_field = "username"
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
{% endif %}
|
||||
{% if perms.bookwyrm.create_invites %}
|
||||
<li>
|
||||
<a href="{% url 'settings-invites' %}" class="navbar-item">
|
||||
<a href="{% url 'settings-invite-requests' %}" class="navbar-item">
|
||||
{% trans 'Invites' %}
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
},
|
||||
"bookwyrmUser": true,
|
||||
"manuallyApprovesFollowers": false,
|
||||
"discoverable": true,
|
||||
"devices": "https://friend.camp/users/tripofmice/collections/devices",
|
||||
"tag": [],
|
||||
"icon": {
|
||||
"type": "Image",
|
||||
"mediaType": "image/png",
|
||||
|
|
|
@ -789,6 +789,7 @@ class Inbox(TestCase):
|
|||
self.assertEqual(user.name, "MOUSE?? MOUSE!!")
|
||||
self.assertEqual(user.username, "mouse@example.com")
|
||||
self.assertEqual(user.localname, "mouse")
|
||||
self.assertTrue(user.discoverable)
|
||||
|
||||
def test_handle_update_edition(self):
|
||||
""" update an existing edition """
|
||||
|
|
Loading…
Reference in a new issue