avoid naming clash is to_activity for field vs model
This commit is contained in:
parent
77aead722d
commit
1ec2f20486
5 changed files with 34 additions and 44 deletions
|
@ -89,7 +89,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
|||
mentions = [u.remote_id for u in self.mention_users.all()]
|
||||
# this is a link to the followers list:
|
||||
followers = self.user.__class__._meta.get_field('followers')\
|
||||
.to_activity(self.user.followers)
|
||||
.field_to_activity(self.user.followers)
|
||||
if self.privacy == 'public':
|
||||
activity['to'] = [public]
|
||||
activity['cc'] = [followers] + mentions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue