mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 02:51:13 +00:00
Removes debug print statements
This commit is contained in:
parent
94ce426617
commit
c9dc1437a1
2 changed files with 0 additions and 6 deletions
|
@ -47,9 +47,7 @@ class ActorModel(BookWyrmModel):
|
|||
|
||||
def save(self, *args, **kwargs):
|
||||
"""set fields"""
|
||||
print('at the parent')
|
||||
created = not bool(self.id)
|
||||
print('parent created', created)
|
||||
if not created:
|
||||
super().save(*args, **kwargs)
|
||||
return
|
||||
|
|
|
@ -237,9 +237,7 @@ class User(OrderedCollectionPageMixin, AbstractUser, ActorModel):
|
|||
|
||||
def save(self, *args, **kwargs):
|
||||
"""populate fields for new local users"""
|
||||
print('hi')
|
||||
created = not bool(self.id)
|
||||
print('created', created)
|
||||
if not self.local and not re.match(regex.FULL_USERNAME, self.username):
|
||||
# parse out the username that uses the domain (webfinger format)
|
||||
actor_parts = urlparse(self.remote_id)
|
||||
|
@ -259,11 +257,9 @@ class User(OrderedCollectionPageMixin, AbstractUser, ActorModel):
|
|||
with transaction.atomic():
|
||||
# populate fields for local users
|
||||
link = site_link()
|
||||
print('link', link)
|
||||
self.remote_id = f"{link}/user/{self.localname}"
|
||||
self.shared_inbox = f"{link}/inbox"
|
||||
# an id needs to be set before we can proceed with related models
|
||||
print('heading to the parent')
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
# make users editors by default
|
||||
|
|
Loading…
Reference in a new issue